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 ¶
func NotAcceptable ¶
func NotAllowed ¶
func Unauthorized ¶
func Unprocessable ¶
Click to show internal directories.
Click to hide internal directories.