//
pkg.gl
Category
github.com/techidea8/codectl
infra
xerror
package
1.0.2
Repository:
https://github.com/techidea8/codectl.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
8
Dependents
0
Files
308 SLOC
#
Functions
New
New creates a new XError with message.
TryUnwrap
TryUnwrap if err is nil then it returns a valid value If err is not nil, Unwrap panics with err.
Unwrap
Unwrap returns unwrapped XError from err by errors.As.
Wrap
Wrap creates a new XError and add message.
#
Structs
Stack
Stack contains function, file and line number info in the stack trace.
XError
XError is to handle error related information.
#
Type aliases
StackTrace
StackTrace is array of frame.