stackTrace
DebuggableError.swift:107This declaration is deprecated: Captured stack traces are no longer supported by Vapor
var stackTrace: StackTrace? { get }
This declaration is deprecated: Captured stack traces are no longer supported by Vapor
var stackTrace: StackTrace? { get }
s5Vapor15DebuggableErrorPAAE10stackTraceAA05StackE0VSgvp
What are these?8XNNK
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.
struct StackTrace
var stackTrace: StackTrace? { get }
Stack trace from which this error originated (must set this from the error’s init)
static var readableName: String { get }
static var typeIdentifier: 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).