Documentation ¶
Overview ¶
Yet another `errors` package, implementing errors handling primitives, allowing error wrapping and error tracing.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Error ¶
type Error struct {
// contains filtered or unexported fields
}
Error represents an error of some Kind, implements the error interface
func (*Error) Format ¶
Format implements fmt.Formatter and can be formatted by the fmt package. The following verbs are supported
%s print the error. If the error has a Cause it will be printed recursively %v see %s %+v extended format. Each Frame of the error's StackTrace will be printed in detail.
func (*Error) StackTrace ¶
func (err *Error) StackTrace() StackTrace
StackTrace returns an stack trace of the error
type Kind ¶
type Kind struct {
Message string
}
Kind represents the kind of an error, from a Kind you can generate as many Error instances as you want of this Kind
type StackTrace ¶
type StackTrace struct {
errors.StackTrace
}
StackTrace is stack of Frames from innermost (newest) to outermost (oldest).
func NewStackTrace ¶
func NewStackTrace(skip int) StackTrace
NewStackTrace returns a new StackTrace, skipping the given number of frames, to avoid including the caller
Click to show internal directories.
Click to hide internal directories.