An error specific to the CryptoTokenKit framework.


struct TKError


Error Characteristics

static var errorDomain: String

The error domain that the framework uses when issuing errors.

var errorCode: Int

The code the framework uses to describe an error.

var errorUserInfo: [String : Any]

A dictionary the framework uses to provide information about an error.

var localizedDescription: String

A human readable, localized description of the error.

Error Codes

static var notImplemented: TKError.Code

The functionality is not implemented.

static var communicationError: TKError.Code

A communication error occurred.

static var canceledByUser: TKError.Code

The operation was canceled by the user.

static var badParameter: TKError.Code

An invalid parameter was provided.

enum TKError.Code

Error codes that may be returned when calling CryptoTokenKit methods.

Operator Functions

static func != (TKError, TKError) -> Bool

Returns a Boolean value indicating whether two values are not equal.

See Also


let TKErrorDomain: String

The domain for all CryptoTokenKit framework errors.