Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Failure ¶
type Failure struct { Nature Nature // Kind of error, used a comparator Timestamp time.Time // The moment the error was created Fault error // The source of the failure }
Failure states for fault that occurs during a process.
type Nature ¶
type Nature string
const ( Structural Nature = "Invalid structure" // Requests, parameters or inputs are wrong. Retry won't work. NotFound Nature = "Unable to find entity" // Failed to lookup something, somewhere Behavioural Nature = "Wrong behavior or result" // No error but the result isn't the one expected Operational Nature = "Invalid operation" // An operation failed due to external causes, a retry could work Implementation Nature = "Illegal call" // Method not implemented or unsupported for the given structure )
Click to show internal directories.
Click to hide internal directories.