Skip to content

Releases: go-playground/errors

Release 1.3.0

02 Apr 18:11
Compare
Choose a tag to compare

What's new?

Added New(...) function for creating errors, just like errors.New() for convenience.

Release 1.2.0

26 Mar 16:17
9c0defa
Compare
Choose a tag to compare

What's new?

Added error helpers which you can register using errors.RegisterHelper(...) that can help classify and gather Tag information automatically.

eg.

errors.RegisterHelper(neterrors.NETErrors)
	_, err := net.ResolveIPAddr("tcp", "foo")
	if err != nil {
		err = errors.Wrap(err, "failed to perform operation")
	}

	// all that extra context, types and tags captured for free
	// there are more helpers and you can even create your own.
        fmt.Println(err)

Release 1.1.0

16 Mar 16:19
Compare
Choose a tag to compare

#What's new?

Updated the docs, nothing to see here.

Release 1.0.0

16 Mar 05:53
bd82447
Compare
Choose a tag to compare

Initial Release

Why create another package for errors?
IMHO most other packages didn't take an errors package far enough, too far or just plain not nice to consume or embed.