# README
mozey/errors
Define custom errors with individual codes and an optional common cause
Usage
See tests for usage
git clone https://github.com/mozey/errors.git
cd errors
go test ./...
# Functions
Cause returns the underlying cause of the error.
Is returns true for custom errors defined with this package, if the format code matches.
New creates a new error with msg.
No description provided by the author
New creates a new error with formatted msg.
NewWithCause creates a new error with cause and msg.
NewType creates a new error with cause and formatted msg.
WithStack may be used to annotate err with a stack trace, at the point where it is called.
# Variables
EmptyCause for matching errors created without a cause.