Skip to content

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

Instance Properties

Type Methods

Relationships

Conforms To

  • AbortError
  • DebuggableError
  • Foundation.LocalizedError
  • Swift.CustomDebugStringConvertible
  • Swift.CustomStringConvertible
  • Swift.Error
  • Swift.Sendable
  • Swift.SendableMetatype