Skip to content
/ berr Public
forked from Rheisen/berr

Better errors Go library: A fork

Notifications You must be signed in to change notification settings

rtalhouk/berr

 
 

Repository files navigation

berr: better errors for go

berr is an errors package that provides simple functions for creating more descriptive errors.

go get github.com/rheisen/berr

Why berr

Error Types

  • berr.ApplicationErrorType
  • berr.AuthenticationErrorType
  • berr.AuthorizationErrorType
  • berr.ValueInvalidErrorType
  • berr.ValueMissingErrorType
  • berr.NotFoundErrorType

Getting Information from berr.Error

  • Error.Type()
  • Error.Message()
  • Error.Details()
  • Error.Map()
  • Error.Unwrap()

Examples

About

Better errors Go library: A fork

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%