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.modgithub.com/bdlm/std/v2/errorsinterfaces
Changed
- licence changed from BSD to MIT
- replace interfaces with
github.com/bdlm/std/v2/errorsimplementations - simplified formatting and marshalling logic
- renamed
GetCaller(error) std_err.CallertoCaller(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
CallerinterfaceErrorinterface- Exported methods
Errorf(msg string, data ...interface{}) ErrorGetCaller(err error) CallerHas(err, test error) boolIs(err, test error) boolTrace(e error) ErrorTrack(e error) Error
Changed
- Exported methods
New(code std.Code, msg string, data ...interface{}) *ErrNew(msg string) Error
Wrap(err error, code std.Code, msg string, data ...interface{}) *ErrWrap(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