Documentation
¶
Index ¶
Constants ¶
View Source
const ( // CONFLICT - An action cannot be performed. CONFLICT = "conflict" // INTERNAL - Error within Go Mail INTERNAL = "internal" // Internal error // INVALID - Validation failed INVALID = "invalid" // Validation failed // API - Error in the http request. API = "api" // Prefix is the string prefixed to an error message. Prefix = "go-mail" // GlobalError is a general message when no error message // has been found. GlobalError = "An error has occurred." )
Application error codes.
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.