Error
public struct Error : Swift.Error, CustomStringConvertible
RSA specific error structure.
-
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 }
-
Initializes an Error Instance
Declaration
Swift
public init(code: Int, reason: String?)Parameters
codeError code
reasonOptional Error Reason
Return Value
Error instance
Error Structure Reference