Skip to content

Releases: bdlm/errors

v2.1.2

12 May 22:56
Compare
Choose a tag to compare

Changed

  • Updated func (e *E) Error() string implementation to handle nil pointer references.

v2.1.1

31 May 02:52
Compare
Choose a tag to compare

Changed

  • Updated various docs

v2.1.0

30 May 20:29
61c413c
Compare
Choose a tag to compare

Added

  • Additional documentation
  • Pre-generics implementation of As, returns the error instance when found

Changed

  • Upgrade to bdlm/std v2.1.0
  • Cleaner type checking in Is methods

Removed

  • deprecated Has methods, use Is instead

v2.0.1

03 May 04:01
88e4324
Compare
Choose a tag to compare

v2.0.0 - 2020-05-02

Changed

  • Refactoring to better implement the std/errors.Error interface

v2.0.0

02 May 22:38
ffe7a47
Compare
Choose a tag to compare

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 to Caller(error) std_err.Caller

Removed

  • unused code

v0.2.1

19 Jul 01:24
Compare
Choose a tag to compare

Added

  • Documentation and examples

Changed

  • Minor formatting updates and cleanup

v0.2.0

18 Jul 06:20
bc08913
Compare
Choose a tag to compare

This release is a full rewrite of the errors package. See the README for further details.

Added

  • Caller interface
  • Error 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

v0.1.3

03 Oct 05:33
f412589
Compare
Choose a tag to compare

Changed

  • Fixes a message formatting error

v0.1.2

09 Sep 09:23
1e47c06
Compare
Choose a tag to compare

Changed

  • Fixes issues with concurrent writes

v0.1.1

22 Aug 18:02
d165b61
Compare
Choose a tag to compare

Added

  • Implemented a Trace method