Documentation
¶
Index ¶
Constants ¶
View Source
const ( CONFLICT = "conflict" // Action cannot be performed INTERNAL = "config" // Internal error INVALID = "invalid" // Validation failed NOTFOUND = "not_found" // Entity does not exist TEMPLATE = "template" // Templating error )
Application error codes.
View Source
const GlobalError = "An error has occurred."
Global Error message when no message has been found.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Error ¶
type Error struct {
Code string `json:"code"`
Message string `json:"message"`
Operation string `json:"operation"`
Err error `json:"error"`
}
Error defines a standard application error.
Click to show internal directories.
Click to hide internal directories.