typeIdentifier
DebuggableError.swift:77static var typeIdentifier: String { get }
static var typeIdentifier: 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 typeIdentifier: String { get }
A unique identifier for the error’s Type.
static var readableName: String { get }
var debugDescription: String { get }
See CustomDebugStringConvertible
var description: String { get }
See CustomStringConvertible
var documentationLinks: [String] { get }
var errorDescription: String? { get }
A localized message describing what error occurred.
var failureReason: String? { get }
A localized message describing the reason for the failure.
var fullIdentifier: String { get }
var gitHubIssues: [String] { get }
var helpAnchor: String? { get }
A localized message providing “help” text if the user requests help.
var logLevel: Logger.Level { get }
var possibleCauses: [String] { get }
var recoverySuggestion: String? { get }
A localized message describing how one might recover from the failure.
var source: ErrorSource? { get }
var stackOverflowQuestions: [String] { get }
var suggestedFixes: [String] { get }
func debuggableHelp(format: HelpFormat) -> String
A computed property returning a String
that encapsulates why the error occurred, suggestions on how to fix the problem, and resources to consult in debugging (if these are available).
var stackTrace: StackTrace? { get }