CardError
public enum CardError : Error
extension CardError: LocalizedError
Errors that occur during communication with the Smart Card stack or the card itself.
Version
1.0Date
6 Nov 2017-
Error thrown when a method has been passed an illegal or inappropriate argument.
Declaration
Swift
case illegalArgument(String)
-
Error thrown when an application is not in an appropriate state for the requested operation.
Declaration
Swift
case illegalState(String)
-
Error thrown when a particular algorithm is requested but is not available in the environment.
Declaration
Swift
case noSuchAlgorithm(String)
-
Error thrown when an error occurs at run time.
Declaration
Swift
case runTimeError(String)
-
Error thrown when the card operation failed.
Declaration
Swift
case operationFailed(String)
-
Error thrown when an application tries to establish a connection with a terminal that has no card present.
Declaration
Swift
case cardNotPresent(String)
-
Declaration
Swift
public var errorDescription: String? { get }