package
module
Version:
v1.2.1
Opens a new window with list of versions in this module.
Published: Jan 5, 2025
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 13
Opens a new window with list of known importers.
README
¶
Documentation
¶
Package wrap contains code to simply wrap things into a bit of context.
Error creates an error with additional context
Deprecated: Use fmt.Errorf() instead using the `%w` format specifier.
Errorf creates an error with additional formatted context
Deprecated: Use fmt.Errorf() instead using the `%w` format specifier.
Errors creates a list of errors with additional context
Errorsf creates a list of errors with additional formatted context
type ContextError interface {
Context() string
Cause() error
}
ContextError interface describes the simple type that is able to provide a
textual context as well as the cause explaining the underlying error.
type ListOfErrors interface {
Context() string
Errors() []error
}
ListOfErrors interface describes a list of errors with additional context
information with an explanation.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.