ProtocolFoundation5.9.0
LocalizedError
Describes an error that provides localized messages describing why an error occurred and provides more information about the error.
protocol LocalizedError : Error
Supertypes
protocol Error
A type representing an error value that can be thrown.
protocol Sendable
A type whose values can safely be passed across concurrency domains by copying.
Requirements
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
Subtypes
protocol DebuggableError
Debuggable
provides an interface that allows a type to be more easily debugged in the case of an error.