Documentation ¶
Overview ¶
package xerror defines a set of errors types, each indicating a category of errors. They are supposed to be used application wide.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsAuthError ¶
IsAuthError returns true if the error is of type AuthError.
func IsBadInputError ¶
IsBadInputError returns true if the error is of type BadInputError.
func IsNotFoundError ¶
IsNotFoundError returns true if the error is of type NotFoundError.
Types ¶
type AuthError ¶
type AuthError struct {
Err error
}
BadInputError indicates a invalid authorization.
type BadInputError ¶
type BadInputError struct {
Err error
}
BadInputError indicates a wrong user input.
func (BadInputError) Error ¶
func (b BadInputError) Error() string
Error returns the underlying error as a string.
type NotFoundError ¶
NotFoundError indicates something was not found
func (NotFoundError) Error ¶
func (n NotFoundError) Error() string
Error returns the underlying error as a string.
Click to show internal directories.
Click to hide internal directories.