<!--
{
  "availability" : [
    "iOS: 9.0.0 -",
    "iPadOS: 9.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.10.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CryptoTokenKit",
  "identifier" : "/documentation/CryptoTokenKit/TKError",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "CryptoTokenKit"
    ],
    "preciseIdentifier" : "s:SC11TKErrorCodeLeV"
  },
  "title" : "TKError"
}
-->

# TKError

An error specific to the CryptoTokenKit framework.

```
struct TKError
```

## Topics

### Checking Error Codes

[`notImplemented`](/documentation/CryptoTokenKit/TKError/notImplemented)

The system doesn’t implement the requested functionality.

[`communicationError`](/documentation/CryptoTokenKit/TKError/communicationError)

The system had a communication error.

[`corruptedData`](/documentation/CryptoTokenKit/TKError/corruptedData)

The system idenfitied the data as corrupted.

[`canceledByUser`](/documentation/CryptoTokenKit/TKError/canceledByUser)

The user canceled the operation.

[`authenticationFailed`](/documentation/CryptoTokenKit/TKError/authenticationFailed)

Authentication failed.

[`objectNotFound`](/documentation/CryptoTokenKit/TKError/objectNotFound)

The system didn’t find the object.

[`tokenNotFound`](/documentation/CryptoTokenKit/TKError/tokenNotFound)

The system didn’t find the token.

[`badParameter`](/documentation/CryptoTokenKit/TKError/badParameter)

An invalid parameter was provided.

[`authenticationNeeded`](/documentation/CryptoTokenKit/TKError/authenticationNeeded)

Authentication is needed.

[`TKErrorAuthenticationFailed`](/documentation/CryptoTokenKit/TKError/TKErrorAuthenticationFailed)

[`TKErrorObjectNotFound`](/documentation/CryptoTokenKit/TKError/TKErrorObjectNotFound)

[`TKErrorTokenNotFound`](/documentation/CryptoTokenKit/TKError/TKErrorTokenNotFound)

### Getting Error Information

### Describing an Error

### Comparing Errors

## Relationships

### Conforms To

[`CustomNSError`](/documentation/Foundation/CustomNSError)

[`Sendable`](/documentation/Swift/Sendable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Equatable`](/documentation/Swift/Equatable)

[`Hashable`](/documentation/Swift/Hashable)

[`Error`](/documentation/Swift/Error)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)