Documentation ¶
Index ¶
- Variables
- func BadRequest(message string) error
- func Forbidden(message string) error
- func IllegalArgument(message string) error
- func IllegalOperation(message string) error
- func InternalServer(message string) error
- func New(statusCode int, code string, message string) error
- func NoMethod(method string) error
- func NoRoute(path string) error
- func Unauthorized(message string) error
- type E
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrUnknown err ErrUnknown = New(http.StatusInternalServerError, code.InternalServerError, "Unknow") ErrUnauthorized = New(http.StatusUnauthorized, "", "User unauthorized") // ErrUserInvalid for login ErrUserInvalid = New(http.StatusBadRequest, "", "Wrong username or password") // ErrUserDisabled for login ErrUserDisabled = New(http.StatusForbidden, "", "The user has been disabled") // ErrIDClockBack clock callback ErrIDClockBack = New(http.StatusOK, code.IDClockBack, "Clock callback") )
View Source
var ( // Wrap errors.Wrap Wrap = errors.Wrap // Wrapf errors.Wrapf Wrapf = errors.Wrapf // WithStack errors.WithStack WithStack = errors.WithStack // WithMessage errors.WithMessage WithMessage = errors.WithMessage // WithMessagef errors.WithMessagef WithMessagef = errors.WithMessagef )
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.