Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrBadRequest = New("BadRequest") ErrForbidden = New("Forbidden") ErrNotFound = New("NotFound") ErrConflict = New("Conflict") ErrTooManyRequests = New("TooManyRequests") ErrInternalServerError = New("InternalServerError") ErrUnexpected = New("UnexpectedError") ErrGeneric = New("GenericError") )
Sentinel errors
Functions ¶
Types ¶
type Error ¶
Error wraps the original error and adds a user-friendly message
func HandleHTTPError ¶
func Wrapf ¶
Wrapf creates a new Error that wraps an existing error with a formatted user-friendly message
Click to show internal directories.
Click to hide internal directories.