Documentation
¶
Overview ¶
Package errs contains user-facing error wrappers and helpers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UserErrorf ¶
UserErrorf is a user-facing error. This helper exists mostly to avoid linters complaining about errors starting with a capitalized letter.
Types ¶
type Error ¶
Error wraps an underlying error with a user-facing reason.
Reason is meant to be short and actionable; Err may contain technical details. When Err is nil, Error() falls back to Reason.
func Wrap ¶ added in v0.2.3
Wrap creates an Error with the given underlying error and user-facing reason.
func Wrapf ¶ added in v0.2.3
Wrapf creates an Error with the given underlying error and a formatted reason.
func (Error) ReasonText ¶
ReasonText returns the user-facing reason for the error.
Click to show internal directories.
Click to hide internal directories.