Releases: morikuni/failure
Releases · morikuni/failure
v2.0.0rc1
v1.1.2
v1.1.1
v1.1.0
What's Changed
- Add Messenger/Contexter interface to work Message (and Trace) with errors.As by @morikuni in #45
- Add Frame.PkgPath by @morikuni in #46
Full Changelog: v1.0.0...v1.1.0
Note
Go 1.11 and 1.12 support has been dropped to use errors.As
internally.
⚠️ Breaking Change ⚠️
If you implements As(interface{}) bool
in your error and using type switch with case failure.Tracer
, then you should change it to case *failure.Tracer
(use pointer).
See #45 more details.
Ordinary users should not be affected.
v1.0.0
v0.14.0
v0.13.0
Note: Minor version update before v1.0.0 may include breaking changes.
Changes
Including breaking changes
- Add WithUnexpected instead of WithoutCode #36
Migration guideline from older version
- Stop using
WithNoCode
and useWithUnexpected
. - Remove
NoCode
method if you have defined it on your error types.