possibleCauses
A String
array describing the possible causes of the error.
var possibleCauses: [String] { get }
A String
array describing the possible causes of the error.
var possibleCauses: [String] { get }
import Vapor
Vapor is a framework for building server applications, APIs and websites in Swift. It provides a safe, performant and scalable foundation for building large complex backends.
protocol DebuggableError : LocalizedError, CustomDebugStringConvertible, CustomStringConvertible
Debuggable
provides an interface that allows a type to be more easily debugged in the case of an error.
@frozen struct String
A Unicode string value that is a collection of characters.
static var readableName: String { get }
A readable name for the error’s Type. This is usually similar to the Type name of the error with spaces added. This will normally be printed proceeding the error’s reason.
static var typeIdentifier: String { get }
A unique identifier for the error’s Type.
var documentationLinks: [String] { get }
An array of string URL
s linking to documentation pertaining to the error.
var gitHubIssues: [String] { get }
An array of string URL
s linking to related issues on Vapor’s GitHub repo.
var identifier: String { get }
Some unique identifier for this specific error. This will be used to create the identifier
property. Do NOT use String(reflecting: self)
or String(describing: self)
or there will be infinite recursion
var logLevel: Logger.Level { get }
Which log level this error should report as. Defaults to .warning
.
var reason: String { get }
The reason for the error. Usually one sentence (that should end with a period).
var source: ErrorSource? { get }
Optional source for this error
var stackOverflowQuestions: [String] { get }
An array of string URL
s linking to related Stack Overflow questions.
var suggestedFixes: [String] { get }
A String
array listing some common fixes for the error.
var stackTrace: StackTrace? { get }
Stack trace from which this error originated (must set this from the error’s init)
var possibleCauses: [String] { get }