Describes an error that provides localized messages describing why an error occurred and provides more information about the error.
protocol LocalizedError : Error
var errorDescription: String?
A localized message describing what error occurred.
var failureReason: String?
A localized message describing the reason for the failure.
var helpAnchor: String?
A localized message providing “help” text if the user requests help.
var recoverySuggestion: String?
A localized message describing how one might recover from the failure.
Extension in Vapor
Debuggableprovides an interface that allows a type to be more easily debugged in the case of an error.