Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
New is a replacement function for errors.New().
This function constructs a Error where both the diagnostic error and the end user error is the same.
func NewMultiError ¶
Types ¶
type Error ¶
type Error interface { // Error that is displayed in the logs and debug messages. Should contain diagnostical information. Error() string // UserError is an error that is displayed to the end user. UserError(t func(string, map[string]string) string) string }
Error extends the built-in error interface with a message that is displayed to the end user.
Click to show internal directories.
Click to hide internal directories.