Protocol
DebuggableError
Debuggable provides an interface that allows a type to be more easily debugged in the case of an error.protocol DebuggableError : LocalizedError, CustomDebugStringConvertible, CustomStringConvertible
Topics
Instance Properties
documentationLinksAn array of stringURLs linking to documentation pertaining to the error.fullIdentifiergitHubIssuesAn array of stringURLs linking to related issues on Vapor’s GitHub repo.identifierSome unique identifier for this specific error. This will be used to create theidentifierproperty. Do NOT useString(reflecting: self)orString(describing: self)or there will be infinite recursionlogLevelWhich log level this error should report as. Defaults to.warning.possibleCausesAStringarray describing the possible causes of the error.reasonThe reason for the error. Usually one sentence (that should end with a period).sourceOptional source for this errorstackOverflowQuestionsAn array of stringURLs linking to related Stack Overflow questions.stackTraceStack trace from which this error originated (must set this from the error’s init)suggestedFixesAStringarray listing some common fixes for the error.
Instance Methods
debuggableHelp(format:)A computed property returning aStringthat encapsulates why the error occurred, suggestions on how to fix the problem, and resources to consult in debugging (if these are available).
Type Properties
readableNameA 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.typeIdentifierA unique identifier for the error’s Type.
Relationships
Inherits From
Foundation.LocalizedErrorSwift.CustomDebugStringConvertibleSwift.CustomStringConvertibleSwift.ErrorSwift.SendableSwift.SendableMetatype