Documentation
¶
Index ¶
- func AlreadyExistsf(format string, args ...interface{}) error
- func Annotatef(other error, format string, args ...interface{}) error
- func AssertError(tb testing.TB, expected, actual error)
- func BadRequestf(format string, args ...interface{}) error
- func Cause(err error) error
- func Equal(a, b error) bool
- func ErrorStack(err error) string
- func Errorf(format string, args ...interface{}) error
- func Forbiddenf(format string, args ...interface{}) error
- func IsAlreadyExists(err error) bool
- func IsBadRequest(err error) bool
- func IsErr(err error) bool
- func IsForbidden(err error) bool
- func IsNotFound(err error) bool
- func IsNotImplemented(err error) bool
- func IsTimeout(err error) bool
- func IsUnauthorized(err error) bool
- func NotFoundf(format string, args ...interface{}) error
- func NotImplementedf(format string, args ...interface{}) error
- func RequireError(tb testing.TB, expected, actual error)
- func Timeoutf(format string, args ...interface{}) error
- func Unauthorizedf(format string, args ...interface{}) error
- func WriteHTTPStatus(w http.ResponseWriter, err error)
- type Err
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AlreadyExistsf ¶
AlreadyExistsf returns an error which satisfies IsAlreadyExists().
func AssertError ¶
AssertError is an assert helper to check for an expected error.
func BadRequestf ¶
BadRequestf returns an error which satisfies IsBadRequest().
func ErrorStack ¶
func Forbiddenf ¶
Forbiddenf returns an error which satisfies IsForbidden().
func IsAlreadyExists ¶
IsAlreadyExists reports whether the error was created with AlreadyExistsf().
func IsBadRequest ¶
IsBadRequest reports whether err was created with BadRequestf().
func IsForbidden ¶
IsForbidden reports whether the error was created with Forbiddenf().
func IsNotFound ¶
IsNotFound reports whether err was created with NotFoundf().
func IsNotImplemented ¶
IsNotImplemented reports whether err was created with NotImplementedf().
func IsUnauthorized ¶
IsUnauthorized reports whether err was created with Unauthorizedf().
func NotImplementedf ¶
NotImplementedf returns an error which satisfies IsNotImplemented().
func RequireError ¶
RequireError is a require helper to check for an expected error.
func Unauthorizedf ¶
Unauthorizedf returns an error which satisfies IsUnauthorized().
func WriteHTTPStatus ¶
func WriteHTTPStatus(w http.ResponseWriter, err error)
WriteHTTPStatus writes the provided error to the provided response writer.
Types ¶
type Err ¶
type Err struct {
// contains filtered or unexported fields
}
Err defines the extended error struct.