Documentation ¶
Index ¶
- type IError
- func BadRequest(err error) IError
- func Conflict(err error) IError
- func Forbidden(err error) IError
- func Internal(err error) IError
- func New(code int, err error) IError
- func NotAcceptable(err error) IError
- func NotAllowed(err error) IError
- func NotFound(err error) IError
- func Unauthorized(err error) IError
- func Unprocessable(err error) IError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IError ¶
type IError interface { Error() string Code() int Details() []IError PushDetail(iError IError) Tag(string) GetTag() string GetError() error }
func BadRequest ¶ added in v1.0.13
func NotAcceptable ¶ added in v1.0.13
func NotAllowed ¶
func Unauthorized ¶ added in v1.0.13
func Unprocessable ¶ added in v1.0.13
Click to show internal directories.
Click to hide internal directories.