package
Version:
v0.3.1
Opens a new window with list of versions in this module.
Published: Sep 15, 2021
License: BSD-3-Clause
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Message returns a headline for an error that is safe to be shown to the user
Message returns an error message that is safe to be shown to the user
WithMessage wraps an internal error with a user-facing message
type CodeError interface {
error
ErrorCode() int
}
type HTTPError interface {
error
HTTPStatus() int
}
type Redirector interface {
error
RedirectLocation() string
}
A UserError is an error that may be shown to end users
Source Files
¶
Click to show internal directories.
Click to hide internal directories.