Skip to content

EnumApps/aerror

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

aerror

Traceable Error for Golang GoDoc

#usage

#on error if err != nil { return aerror.WrapError(err) }

#on log/output fmt.Println(err) // use as a normal error , it will always compatable

  switch a:= err.(type){
    case *aerror.AError:
      fmt.Println(a.Trace)
      break
    default:
      fmt.Println(err)
      break
  }

#use a premade tool

  import "github.com/EnumApps/aerror/debugutil"

  if err != nil {
    debugutil.PrintTrace(err)
  }

About

Traceable Error for Golang

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages