Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Err ¶
type Err struct {
Orig error
// Source defines with entity is generating the error.
// It allows passing along information about where the error is being
// generated from. for example, the Asset.
Source string
// Reason is a CamelCase string that summarizes the error in one word.
// It allows easy catgeorizations of known errors.
Reason string
// Message is free-form strings which provides important details or
// diagnostics for the error. When writing messages, make sure to keep in mind
// that the audience for message is end-users who might not be experts.
Message string
}
Err wraps diagnostics information for an error. Err allows providing information like source, reason and message that provides a much better user error reporting capability.
func (*Err) Error ¶
Error returns a string representation of the Err. The returned value is expected to be a single value. The format of the error string returned is, `error(<Reason>) from <Source>: <Message>: <Cause of Orig>`
Click to show internal directories.
Click to hide internal directories.