Releases: bdlm/errors
Releases · bdlm/errors
v2.1.2
v2.1.1
v2.1.0
v2.0.1
v2.0.0
v2.0.0 - 2020-05-02
v2.0.0
is the production release of the v0.2.0
development branch.
Added
go.mod
github.com/bdlm/std/v2/errors
interfaces
Changed
- licence changed from BSD to MIT
- replace interfaces with
github.com/bdlm/std/v2/errors
implementations - simplified formatting and marshalling logic
- renamed
GetCaller(error) std_err.Caller
toCaller(error) std_err.Caller
Removed
- unused code
v0.2.1
v0.2.0
This release is a full rewrite of the errors
package. See the README for further details.
Added
Caller
interfaceError
interface- Exported methods
Errorf(msg string, data ...interface{}) Error
GetCaller(err error) Caller
Has(err, test error) bool
Is(err, test error) bool
Trace(e error) Error
Track(e error) Error
Changed
- Exported methods
New(code std.Code, msg string, data ...interface{}) *Err
New(msg string) Error
Wrap(err error, code std.Code, msg string, data ...interface{}) *Err
Wrap(e error, msg string, data ...interface{}) Error
Removed
- Exported methods
From(code std.Code, err error) *Err
- Support for error codes
- Support for sanitized vs raw error messages
- Support for HTTP status codes