Versions in this module Expand all Collapse all v0 v0.1.2 May 3, 2023 v0.1.1 May 2, 2023 v0.1.0 May 2, 2023 Changes in this version + var ErrEmptyToken = NewRestError(401, "EmptyToken") + var ErrExpired = NewRestError(401, "Expired") + var ErrInvalidToken = NewRestError(401, "InvalidToken") + var ErrMapTokenClaims = NewRestError(500, "FailedMapTokenClaims") + var ErrNotFound = NewRestError(404, "NotFound") + var ErrUnauthorized = NewRestError(401, "UnAuthorized") + func Wrap(err error, args ...interface{}) error + func WrapTx(tx driver.Tx, err error) error + func Wrapf(format string, a ...interface{}) error + type RestError struct + Code int + Message string + OriginalError error + func BadRequest(message string) RestError + func BadRequestf(format string, a ...interface{}) RestError + func NewRestError(code int, format string, a ...interface{}) RestError + func NotFound(message string) RestError + func NotFoundf(format string, a ...interface{}) RestError + func (re RestError) Error() string + func (re RestError) IsHyperError() bool + func (re RestError) Unwrap() error + type UnexpectStatusCodeError struct + OriginalError error + UnexpectedCode int + func UnexpectedStatusCode(status int, err error) UnexpectStatusCodeError + func (e UnexpectStatusCodeError) Error() string