Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
// Separator is used to separate nested errors.
Separator = ":\n\t"
)
Functions ¶
Types ¶
type Error ¶
type Error struct { // Op is the performed operation, usually it is the method name. // e.g. Bus.Publish() Op Operation // Kind of the error such as consumer not found // or "Other" if its class is unknown or irrelevant. Kind Kind // Err is the underlying error that has triggered this one, if any. Err error }
Error is the implementation of the error interface.
type Kind ¶
type Kind uint8
Kind is the error classification.
const ( // Other is a fallback classification of the error. Other Kind = iota // Invalid entity is not allowed. Invalid // Exist item already exists. Exist // NotFound item is not found. NotFound // MinLength should be 1 or more. MinLength // Failure to apply an operation. Failure // Panic recovery errors. Panic )
Click to show internal directories.
Click to hide internal directories.