failure is a utility package for handling application errors.
Full Changelog: https://github.com/morikuni/failure/compare/v1.1.2...v2.0.0rc1
Full Changelog: https://github.com/morikuni/failure/compare/v1.1.1...v1.1.2
Full Changelog: https://github.com/morikuni/failure/compare/v1.1.0...v1.1.1
Full Changelog: https://github.com/morikuni/failure/compare/v1.0.0...v1.1.0
Go 1.11 and 1.12 support has been dropped to use errors.As
internally.
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.
Full Changelog: https://github.com/morikuni/failure/compare/v0.14.0...v1.0.0
Note: Minor version update before v1.0.0 may include breaking changes.
Including breaking changes
WithNoCode
and use WithUnexpected
.NoCode
method if you have defined it on your error types.Note: Minor version update before v1.0.0 may include breaking changes.