DatabaseError

public struct DatabaseError : Error
extension DatabaseError: CustomStringConvertible
extension DatabaseError: LocalizedError

An error supplying a message and description.

  • A brief message describing the error

    Declaration

    Swift

    public let message: String
  • A more detailed description of the error’s cause

    Declaration

    Swift

    public let details: String?
  • Creates an error with the given message.

    Declaration

    Swift

    public init(_ message: String)

    Parameters

    message

    A brief message describing the error

  • Declaration

    Swift

    public var description: String { get }
  • Declaration

    Swift

    public var errorDescription: String? { get }
  • Declaration

    Swift

    public var failureReason: String? { get }