Documentation
¶
Index ¶
- func New(text string) error
- type ErrCode
- type Error
- func (e *Error) AppendError(err error) *Error
- func (e *Error) AppendMsg(message string) *Error
- func (e Error) Code() ErrCode
- func (e Error) Err() error
- func (e *Error) Error() string
- func (err *Error) HttpStatus() int
- func (e Error) Message() string
- func (e *Error) PrependError(err error) *Error
- func (e *Error) PrependMsg(message string) *Error
- func (e *Error) SetCode(code ErrCode) *Error
- func (e *Error) UnwrapErr() []error
- func (e Error) Valid() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Error ¶
type Error struct {
// contains filtered or unexported fields
}
func NewConflictError ¶
func NewInternalError ¶
func NewInvalidError ¶
func NewNotFoundError ¶
func NewUnknownError ¶
func (*Error) AppendError ¶
func (*Error) HttpStatus ¶
func (*Error) PrependError ¶
func (*Error) PrependMsg ¶
Click to show internal directories.
Click to hide internal directories.