package
0.0.0-20230419164504-91cf1c91bd28
Repository: https://github.com/stevenacoffman/simplerr.git
Documentation: pkg.go.dev
# Functions
As finds the first error in err's chain that matches the type to which target points, and if so, sets the target to its value and returns true.
Callers mirrors the code in github.com/pkg/errors, but makes the skip depth customizable.
Cause aliases UnwrapAll() for compatibility with github.com/pkg/errors.
ElideSharedStackSuffix removes the suffix of newStack that's already present in prevStack.
GetFields retrieves any Fields from a stack of causes, combines them such that the last key value pair wins.
Is determines whether one of the causes of the given error or any of its causes is equivalent to some reference error.
New returns an error that formats as the given text.
Unwrap aliases UnwrapOnce() for compatibility with xerrors.
UnwrapAll accesses the root cause object of the error.
UnwrapOnce accesses the direct cause of the error if any, otherwise returns nil.
With returns an error that represents front wrapped over back.
WithStack annotates err with a wrapper trace at the point WithStack was called.
WithStackDepth annotates err with a wrapper trace starting from the given call depth.
Wrap wraps an error with a message prefix.
Wrapf wraps an error with a formatted message prefix.
WrapWithFields adds fields to an existing error.
No description provided by the author
# Type aliases
No description provided by the author
Stack represents a Stack of program counters.
StackTrace is Stack of Frames from innermost (newest) to outermost (oldest).