Discover Packages
github.com/bww/go-util
v1
errors
package
Version:
v1.28.0
Opens a new window with list of versions in this module.
Published: Oct 13, 2023
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 3
Opens a new window with list of known importers.
Documentation
Documentation
¶
Create a set of errors. Only non-nil parameters are included. If only
one non-nil parameter is provided it is simply returned and a set is
not actually created.
Stacktrace captures the current stack (excluding itself) and
wraps the provided error with it.
type Error struct {
Message string `json:"message"`
Detail interface{} `json:"detail,omitempty"`
Cause error `json:"-"`
}
Conform to error. This method simply concatenates the result of Error()
for all the elements of the set and returns the result.
Support error unwrapping. For an error set this simply returns the first
error in the set, if any, as the unwrapped value.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.