Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrPaddingSize = errors.New("padding size error please check the secret key or iv") ErrDataType = errors.New("data type error") )
Functions ¶
Types ¶
type ErrOptions ¶
func NewError ¶
func NewError() *ErrOptions
func NewErrorBadRequest ¶
func NewErrorBadRequest(err error) *ErrOptions
func NewErrorStrWithOptions ¶
func NewErrorStrWithOptions(code int, err string) *ErrOptions
func NewErrorUnauthorized ¶
func NewErrorUnauthorized(err error) *ErrOptions
func NewErrorWithOptions ¶
func NewErrorWithOptions(code int, err error) *ErrOptions
func (*ErrOptions) WithCode ¶
func (e *ErrOptions) WithCode(code int) *ErrOptions
func (*ErrOptions) WithData ¶
func (e *ErrOptions) WithData(data any) *ErrOptions
func (*ErrOptions) WithErr ¶
func (e *ErrOptions) WithErr(err string) *ErrOptions
Click to show internal directories.
Click to hide internal directories.