Documentation ¶
Index ¶
- func Base(format string, a ...interface{}) error
- func Err(err interface{}, fmtParams ...interface{}) error
- func FullTrace(err error) string
- func HasTrace(err error) bool
- func Is(e error, original error) bool
- func Prefix(prefix string, err interface{}) error
- func Trace(err error) string
- func Unwrap(err error) error
- func Wrap(err interface{}, skip int) *errors.Error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Err ¶
func Err(err interface{}, fmtParams ...interface{}) error
Err intelligently creates/handles errors, while preserving the stack trace. It works with errors from github.com/pkg/errors too.
func Is ¶
Is compares two wrapped errors to determine if the underlying errors are the same It also interops with errors from pkg/errors
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.