package
0.0.0-20140925100237-08cceb5d0b53
Repository: https://github.com/juju/errgo.git
Documentation: pkg.go.dev
# Functions
Any returns true.
Cause returns the cause of the given error.
Details returns information about the stack of underlying errors wrapped by err, in the format:
[{filename:99: error one} {otherfile:55: cause of error one}]
The details are found by type-asserting the error to the Locationer, Causer and Wrapper interfaces.
Is returns a function that returns whether the an error is equal to the given error.
Mask returns an Err that wraps the given underyling error.
MaskFunc returns an equivalent of Mask that always allows the specified causes in addition to any causes specified when the returned function is called.
New returns a new error with the given error message and no cause.
Newf returns a new error with the given printf-formatted error message and no cause.
Notef returns an Error that wraps the given underlying error and adds the given formatted context message.
NoteMask returns an Err that has the given underlying error, with the given message added as context, and allowing the cause of the underlying error to pass through into the result if allowed by the specific pass functions (see Mask for an explanation of the pass parameter).
WithCausef returns a new Error that wraps the given (possibly nil) underlying error and associates it with the given cause.
# Interfaces
Causer is the type of an error that may provide an error cause for error diagnosis.
Location can be implemented by any error type that wants to expose the source location of an error.
Wrapper is the type of an error that wraps another error.