Documentation ¶
Index ¶
- func Error(e error) error
- func ErrorInfo(e error) string
- func ErrorWithLine(line string, e error) error
- func ErrorWrap(e error, format string, a ...interface{}) error
- func ErrorWrapWithLine(line string, e error, format string, a ...interface{}) error
- func Errorf(format string, a ...interface{}) error
- func ErrorfWithLine(line string, format string, a ...interface{}) error
- func PrimitiveError(e error) error
- func WithInfo(e error, info string) error
- func WithInfoWithLine(line string, e error, info string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrorWithLine ¶
Error returns an error which prefixes function name, similar to the call-stack
func ErrorWrapWithLine ¶
ErrorWrap returns an error which combine current function name and the call-stack
func Errorf ¶
Errorf returns an error which also prefixes the function name and formats the current error
func ErrorfWithLine ¶
Errorf returns an error which also prefixes the function name and formats the current error
func PrimitiveError ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.