Documentation ¶
Index ¶
- func IsNotFoundError(err error) bool
- func IsNotImplementedError(err error) bool
- func IsUnauthorizedError(err error) bool
- func NewNotFoundError(err error, msg string) error
- func NewNotImplementedError(what string) error
- func NewUnauthorizedError(err error, msg string) error
- func NotFoundf(format string, args ...interface{}) error
- func Unauthorizedf(format string, args ...interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsNotFoundError ¶
IsNotFoundError is satisfied by errors created by this package representing resources that can't be found.
func IsNotImplementedError ¶
IsNotImplementedError reports whether the error was created with NewNotImplementedError.
func IsUnauthorizedError ¶
IsUnauthorizedError is satisfied by errors created by this package representing authorization failures.
func NewNotFoundError ¶
NewNotFoundError returns a new error wrapping err that satisfies IsNotFoundError().
func NewNotImplementedError ¶
NewNotImplementedError returns an error signifying that something is not implemented.
func NewUnauthorizedError ¶
NewUnauthorizedError returns an error which wraps err and satisfies IsUnauthorized().
func NotFoundf ¶
NotFoundf returns a error which satisfies IsNotFoundError(). The message for the error is made up from the given arguments formatted as with fmt.Sprintf, with the string " not found" appended.
func Unauthorizedf ¶
Unauthorizedf returns an error which satisfies IsUnauthorizedError().
Types ¶
This section is empty.