<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "macOS: 13.3.0 -",
    "watchOS: 9.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CarKey",
  "identifier" : "/documentation/CarKey/CarKeyErrorCode",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "CarKey"
    ],
    "preciseIdentifier" : "s:6CarKey0aB9ErrorCodeO"
  },
  "title" : "CarKeyErrorCode"
}
-->

# CarKeyErrorCode

The errors that can occur when you perform remote-keyless entry operations on a vehicle.

```
enum CarKeyErrorCode
```

## Topics

### Getting the Error Code

[`case AnotherRequestInProgress`](/documentation/CarKey/CarKeyErrorCode/AnotherRequestInProgress)

An error that indicates a previous request is still in progress.

[`case ClientInBackground`](/documentation/CarKey/CarKeyErrorCode/ClientInBackground)

An error that indicates the operation occurred when the app
was in the background.

[`case EnduringRequestUsingEventMethod`](/documentation/CarKey/CarKeyErrorCode/EnduringRequestUsingEventMethod)

An error that indicates a mismatch between the initial request
type and the results.

[`case FeatureNotSupported`](/documentation/CarKey/CarKeyErrorCode/FeatureNotSupported)

An error that indicates the specified feature isn’t supported
in the current environment.

[`case FunctionUnknown`](/documentation/CarKey/CarKeyErrorCode/FunctionUnknown)

An error that indicates the vehicle didn’t recognize the
specified function identifier.

[`case Internal`](/documentation/CarKey/CarKeyErrorCode/Internal)

An error that indicates an unknown error occurred.

[`case MessageTooLong`](/documentation/CarKey/CarKeyErrorCode/MessageTooLong)

An error that indicates the command you sent was too long.

[`case RequestNotInProgress`](/documentation/CarKey/CarKeyErrorCode/RequestNotInProgress)

An error that indicates an enduring operation wasn’t running.

[`case RequestTimedOut`](/documentation/CarKey/CarKeyErrorCode/RequestTimedOut)

An error that indicates the request didn’t complete in time.

[`case SecurityViolation`](/documentation/CarKey/CarKeyErrorCode/SecurityViolation)

An error that indicates your app doesn’t have the required entitlements.

[`case SessionNotActive`](/documentation/CarKey/CarKeyErrorCode/SessionNotActive)

An error that indicates an active session is currently inactive.

[`case VehicleNotConnected`](/documentation/CarKey/CarKeyErrorCode/VehicleNotConnected)

An error that indicates the vehicle isn’t available to
respond to the request.

[`case VehicleNotFound`](/documentation/CarKey/CarKeyErrorCode/VehicleNotFound)

An error that indicates a vehicle with the specified ID wasn’t found.

## Relationships

### Conforms To

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

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

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

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

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

---

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)