package
0.0.0-20190118033331-2a53b66835d6
Repository: https://github.com/arcplus/go-lib.git
Documentation: pkg.go.dev
# Functions
Annotate is used to add extra context to an existing error.
BadRequest error.
Cause returns the underlying cause of the error, if possible.
DeferredAnnotate annotates the given error (when it is not nil) with the given format string and arguments (like fmt.Sprintf).
No description provided by the author
IsErr reports whether err or any of the errors in its chain is equal to target.
New is a drop in replacement for the standard library errors module that records the location that the error is created.
NewWithAlert is a drop in replacement for the standard library errors module that records the location that the error is created but with alert msg for show.
No description provided by the author
ToError convert err to *err.
Trace add file and line info to err.
Wrap changes the code of the error.
# Constants
No description provided by the author
conflict error.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
miss token.
# Structs
Error implements error interface and add Code, so errors with different message can be compared.
# Interfaces
Errorer interface.
Locationer indicate where error occured.
Wrapper is an error implementation wrapping context around another error.