Structure
Abort
Default implementation of
AbortError. You can use this as a convenient method for throwing AbortErrors without having to conform your own error-type to AbortError.struct Abort
Overview
throw Abort(.badRequest, reason: "Something's not quite right...")
Topics
Initializers
init(_:headers:reason:identifier:suggestedFixes:file:function:line:column:range:)Create a newAbort, capturing current source location info.init(_:headers:reason:identifier:suggestedFixes:file:function:line:column:range:stackTrace:)
Instance Properties
headersSeeAbortError.identifierSeeDebuggablereasonSeeAbortErrorsourceSource location where this error was created.stackTraceStack trace at point of error creation.statusSeeAbortError
Type Methods
redirect(to:redirectType:)Creates a redirectingAborterror.redirect(to:type:)Creates a redirectingAborterror.
Relationships
Conforms To
AbortErrorDebuggableErrorFoundation.LocalizedErrorSwift.CustomDebugStringConvertibleSwift.CustomStringConvertibleSwift.ErrorSwift.SendableSwift.SendableMetatype