Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Cause ¶
Cause returns the underlying cause of the error, if possible. An error value has a cause if it implements the Causer interface. If the error does not implement Causer, the original error will be returned. If the error is nil, nil will be returned.
func Location ¶
Location returns the location of the error, if known. An error value has a location if it implements the StackTracer interface.
func StackTrace ¶
func StackTrace(err error) errors.StackTrace
StackTrace returns the stack trace associated with the error, if known. An error value has an associated stack trace if it implements the StackTracer interface.
Types ¶
type Causer ¶
type Causer interface {
Cause() error // Cause returns the underlying cause of the error, if possible.
}
Causer is the interface satisfied by an error with a Cause method.
type StackTracer ¶
type StackTracer interface {
StackTrace() errors.StackTrace // StackTrace returns the associated stack trace.
}
StackTracer is the interface satisfied by an error with a StackTrace method.
type Template ¶
type Template string
Template provides a template error.