package
Version:
v0.7.3
Opens a new window with list of versions in this module.
Published: Mar 14, 2023
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 12
Opens a new window with list of known importers.
Documentation
¶
Package cerrors provides a custom error type that can hold more context than the stdlib error package.
New creates an error by (optionally) wrapping an existing error and
annotating the error with structured tags.
WithTags annotates an existing error with structured tags.
Error can wrap an error with additional context such as structured tags.
Error returns a human-friendly string that contains the
entire error chain along with all of the tags on each
error.
Unwrap returns the underlying cause of an error (if any).
Source Files
¶
Click to show internal directories.
Click to hide internal directories.