Documentation
¶
Index ¶
- type CodeError
- func BadRequest(message string) CodeError
- func Empty() CodeError
- func Forbidden(message string) CodeError
- func Map(err error) (codeErr CodeError)
- func New(code int, name string, message string) CodeError
- func NewWithDepth(code int, name string, message string, skip int) CodeError
- func NotAcceptable(message string) CodeError
- func NotFound(message string) CodeError
- func NotImplemented(message string) CodeError
- func ServiceError(message string) CodeError
- func Timeout(message string) CodeError
- func Unauthorized(message string) CodeError
- func Unavailable(message string) CodeError
- func Warning(message string) CodeError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CodeError ¶
type CodeError interface { Id() string Code() int Name() string Message() string Stacktrace() (fn string, file string, line int) WithMeta(key string, value string) (err CodeError) WithCause(cause error) (err CodeError) Contains(err error) (has bool) Error() string Format(state fmt.State, r rune) String() string }
func BadRequest ¶ added in v1.4.0
func NewWithDepth ¶ added in v1.3.0
func NotAcceptable ¶ added in v1.4.0
func NotImplemented ¶ added in v1.4.0
func ServiceError ¶
func Unauthorized ¶ added in v1.4.0
func Unavailable ¶ added in v1.4.0
Click to show internal directories.
Click to hide internal directories.