Documentation
¶
Overview ¶
Package errors represents the interface (and its implementations) of handling errors.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrorFatal = errors.New("fatal error")
ErrorFatal the typification to declarative indicate a fatal error.
Functions ¶
This section is empty.
Types ¶
type ErrorManager ¶
type ErrorManager interface {
New(message string) error
Wrap(err error, message string) error
Cause(err error) error
WithStack(err error) error
ShortMessage(err error) string
FullMessage(err error) string
StackTrace(err error) stack.Stack
WithMessage(err error, message string) error
Errorf(format string, args ...interface{}) error
Wrapf(err error, format string, args ...interface{}) error
WithMessagef(err error, format string, args ...interface{}) error
}
ErrorManager provides an interface for handle the error.
Click to show internal directories.
Click to hide internal directories.