package
Version:
v0.0.0-...-7de0bc6
Opens a new window with list of versions in this module.
Published: Apr 13, 2021
License: Apache-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 2
Opens a new window with list of known importers.
Documentation
¶
func Failf(klass int, innerError error, message string, args ...interface{})
Failf panics with a wrapped E containing an interpolated message
E is a container for errors.
In addition to the standard error message, it also contains the
stack trace and a few other important attributes.
func NewErrorf(klass int, message string, args ...interface{}) *E
NewErrorf creates a new E with an interpolated message
Wrap creates a new E that wraps another error
func Wrapf(klass int, innerError error, message string, args ...interface{}) *E
Wrapf creates a new wrapped E with an interpolated message
Class returns the class of this error.
func (e *E) InnerError() error
InnerError returns the inner error wrapped in this error if there's one.
Stack returns the callstack (up to 32 frames) indicating where the
error occurred
func (e *E) WithExtendedInfo() *E
WithExtendedInfo returns a new instance of E which prints the
additional details such as callstack.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.