Documentation
¶
Overview ¶
Package apperr provides application errors that combine a typed sentinel, optional context, and an optional wrapped cause.
Sentinels must be comparable errors, usually package-local string types with const values. Error unwraps to both the sentinel and the wrapped cause, so callers normally classify failures with errors.Is and the package sentinel.
Callers that need typed app-error metadata can name *apperr.Error[pkg.ErrKind] directly.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppErrMsgf ¶
func AppErrWrap ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.