Documentation
¶
Index ¶
- func Code(err error) codes.Code
- func New(code codes.Code, msg ...interface{}) error
- func Newf(code codes.Code, fmtStr string, args ...interface{}) error
- func Wrap(err error, code codes.Code, msg ...interface{}) error
- func Wrapf(err error, code codes.Code, format string, a ...interface{}) error
- type Error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Error ¶
type Error struct {
// Code is the code of the error as defined in the codes package.
// This describes the type and category of the error. It is required.
Code codes.Code
// Msg contains a human-readable description and additional information
// about the error itself. This is optional.
Msg string
// Err contains the error that was the cause of this error.
// This is optional.
Err error
}
Error is the error struct of flux.
Click to show internal directories.
Click to hide internal directories.