Documentation ¶
Index ¶
- Constants
- func Cause(err error) error
- func GetCodeReason(status int) string
- func New(status int) error
- func NewCode(status int, reason string)
- func Newf(status int, args ...interface{}) error
- func Wrap(err error, status int) error
- func Wrapf(err error, status int, args ...interface{}) error
- type Code
- type Error
Constants ¶
View Source
const ( OK = iota InternalServerErr BadRequest NotFound )
Variables ¶
This section is empty.
Functions ¶
func GetCodeReason ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.