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 (Error) ReasonText ¶
ReasonText returns the user-facing reason for the error.
Click to show internal directories.
Click to hide internal directories.