Skip to content

Releases: zgalor/weberr

v0.8.2

02 Jan 09:47
c7ad140
Compare
Choose a tag to compare

Add a wrapper to go errors Is() func

v0.7.0

30 Dec 11:01
7118065
Compare
Choose a tag to compare

Add a wrapper to pkg/errors As() func

v0.6.0

14 Aug 08:53
54d909c
Compare
Choose a tag to compare

Added SetUserMessage to allow overriding user messages

func SetUserMessage(err error, msg string) error 

v0.5.0

29 Jul 15:31
f28a8f8
Compare
Choose a tag to compare

Added Details API which allows adding any object to the error.

func AddDetails(err error, details interface{}) error
func GetDetails(err error) []interface{}

v0.4.0

02 May 08:11
67034c5
Compare
Choose a tag to compare

Wrapf(nil, msg, args...) ==> Errorf(msg, args...)
UserWrapf(nil, msg, args...) ==> UserErrorf(msg, args...)

v0.3.0

04 Mar 07:42
3fb299b
Compare
Choose a tag to compare

Change the value of NoType to iota

NoType defaulted to InternalServerError 500 but previous version added InternalServerError explicit error type.
This change sets NoType with a different non-http error code, leaving the decision of how to handle it to the application using the package.

v0.2.0

27 Feb 12:32
bfe5c85
Compare
Choose a tag to compare

Add known RFC error codes

v0.1.1

06 Jan 13:03
Compare
Choose a tag to compare

Fix license conflict

v0.1.0

03 Jan 11:44
Compare
Choose a tag to compare

Initial release