Error

public struct Error : Swift.Error, CustomStringConvertible

RSA specific error structure.

– Public Properties

  • The error domain.

    Declaration

    Swift

    public let domain: String
  • The error code: see constants above for possible errors (Readonly)

    Declaration

    Swift

    public internal(set) var errorCode: Int32 { get }
  • The reason for the error (if available) (Readonly)

    Declaration

    Swift

    public internal(set) var errorReason: String? { get }
  • Returns a string description of the error. (Readonly)

    Declaration

    Swift

    public var description: String { get }

– Public Functions

  • Initializes an Error Instance

    Declaration

    Swift

    public init(code: Int, reason: String?)

    Parameters

    code

    Error code

    reason

    Optional Error Reason

    Return Value

    Error instance