Documentation
¶
Overview ¶
Package conerror provides contextual errors.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConError ¶
type ConError interface {
error
// Get contextual information.
Get(key interface{}) interface{}
// Set contextual information.
Set(key, val interface{})
}
ConError is a contextual error. It can be used as a std error and to hold extra information via the Get() and Set() methods available.
func NewFromError ¶
NewFromError creates a new ConError from an error.
Click to show internal directories.
Click to hide internal directories.