Categorygithub.com/go-framework/errors
modulepackage
1.0.3
Repository: https://github.com/go-framework/errors.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

Append multiple error err to the end of error errs.
Disable debug mode.
Enable debug mode.
Equal two error, if equaled return true.
Equal code with err which implement Error interface, if equaled return true.
Takes a slice of PC values returned by Callers and prepares to return file/function/line information.
Get pc caller stacks.
Get detail from any interface.
Get error in given err.
Get the absolute path split by src path.
Check is golang sdk error.
New error with interface and options.
New caller, skip and deep is callers.
New Error interface with code interface, detail and options.
New Error interface with format detail.
New Error interface with code interface, message, detail string, level and options.
New Errors.
New string code error.
New returns an error that formats as the given text.
Return nil if err is nil.
Register GetIntCodeTextHandler.
convert i to int64.
With caller option.
With level option.
With level caller option.
With message option.
With set level caller option.

# Constants

Int code offset.
Critical level have error caller and stack trace.
Debug level have error caller and print stack trace.
Fatal level have error caller and print stack trace, then call to os.Exit(1).
Normal level have no error caller and stack trace.
Panic level have error caller and print stack trace, then panic error.
Critical level have error caller and no stack trace.
Max of Int64.
Max of Uint64.
No description provided by the author
No description provided by the author

# Variables

Debug mode pointer.
No description provided by the author
No description provided by the author
Panic function.

# Structs

Caller of error.
Int code error description.
String code error description.
Text error defined.
Uint code error description.

# Interfaces

Code interface.
No description provided by the author
Message interface.
An Option configures Error interface.

# Type aliases

Error list.
Defined GetIntCodeTextHandler type.
Defined IntCode type.
Level.
Defined StringErrCode type.
Defined UintErrCode type.