All notable changes to this project are documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Major: backwards incompatible package updates
- Minor: feature additions, removal of deprecated features
- Patch: bug fixes, backward compatible model and function changes, etc.
- n/a
- Updated
func (e *E) Error() string
implementation to handle nil pointer references.
- n/a
- n/a
- Updated various docs
- n/a
- Additional documentation
- Pre-generics implementation of
As
, returns the error instance when found
- Upgrade to
bdlm/std
v2.1.0 - Cleaner type checking in
Is
methods
- deprecated
Has
methods, useIs
instead
- n/a
- Refactoring to better implement the
std/errors.Error
interface
- n/a
v2.0.0
is the production release of the v0.2.0
development branch.
go.mod
github.com/bdlm/std/v2/errors
interfaces
- 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
- unused code
- Documentation and examples
- Minor formatting updates and cleanup
- n/a
This release is a full rewrite of the errors
package. See the README for further details.
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
- 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
- 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
- n/a
- Fixes a message formatting error
- n/a
- n/a
- Fixes issues with concurrent writes
- n/a
- Implemented a
Trace
method
- n/a
- n/a
- Initial release
- n/a
- n/a