package
Version:
v1.0.1
Opens a new window with list of versions in this module.
Published: Aug 28, 2026
License: MIT
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package safeerr provides errors that preserve a cause without exposing its
potentially credential-bearing text through Error.
Wrap preserves cause for errors.Is and errors.As while exposing only message.
Error wraps an error with safe public text.
Error returns text that is safe to log.
Unwrap returns the original error for programmatic inspection.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.