modulepackage
0.0.0-20180223142025-ad03d3cc6a5c
Repository: https://github.com/lbryio/errors.go.git
Documentation: pkg.go.dev
# README
errors
This repo has been moved to https://github.com/lbryio/lbry.go/tree/master/errors
Better error handling. Marries go-errors/errors to pkg/errors, and adds a little bit of our own magic sauce.
# Functions
Base returns a simple error with no stack trace attached.
Err intelligently creates/handles errors, while preserving the stack trace.
FullTrace returns the error type, message, and stack trace.
HasTrace checks if error has a trace attached.
Is compares two wrapped errors to determine if the underlying errors are the same It also interops with errors from pkg/errors.
Prefix prefixes the message of the error with the given string.
Trace returns the stack trace.
Wrap calls errors.Wrap, in case you want to skip a different amount.