Documentation ¶
Index ¶
- Variables
- func PassError(err error) error
- func PassErrorHandlerError(mainErr, handlerErr error, connectorText string) error
- func WrapError(err error, text string) error
- func WrapErrorHandlerError(mainErr, handlerErr error, connectorText, errorHandlerText string) error
- func WrapErrorf(err error, text string, args ...interface{}) error
- func WrappedError(text string) error
- func WrappedErrorf(text string, args ...interface{}) error
- type Error
Constants ¶
This section is empty.
Variables ¶
var PrintStackTrace = false
Functions ¶
func PassErrorHandlerError ¶
PassErrorHandlerError combines mainErr and handlerError similar to WrapErrorHandlerError, but it doesn't provide any additional text (analogous to PassError).
func WrapErrorHandlerError ¶
func WrapErrorHandlerError( mainErr, handlerErr error, connectorText, errorHandlerText string, ) error
WrapErrorHandlerError combines two errors into one. The first error is an error that occurred during the main operation. The second error is an error that occurred during error handling. Errors are combined using connectorText. Additional text can be added to the handler error message using errorHandlerText.
func WrapErrorf ¶
WrapErrorf wraps an error with a stack trace and adds additional formatted text information.
func WrappedError ¶
WrappedError creates an error with a stack trace from text.
func WrappedErrorf ¶
WrappedErrorf creates an error with a stack trace from formatted text.