package
Version:
v0.0.0-...-2f3eae6
Opens a new window with list of versions in this module.
Published: Nov 20, 2024
License: MIT
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
IsCode is a convenience wrapper for `errors.Is`
`errors.Is(err, "foo")` does not work
`IsCode(err, "foo")` does - as the string is automatically converted
Error implements the error interface
Provides a simple string representation of the error, but cannot include the
complete data contained in the error
No compatibility guarantees are made with its output - it may change at any time
Is enables the use of `errors.Is`
Unwrap enables the use of `errors.Unwrap`
type Merrer interface {
error
Merr() E
}
Merrer (merr-er) represents a merr-compatible error
It primarily exists to allow `Wrap` to return nil without forcing us to use
pointers for `E`, but also allows other structs to offer a merr.E option
Source Files
¶
Click to show internal directories.
Click to hide internal directories.