<!--
{
  "availability" : [
    "iOS: 12.5.0 - 27.0.0",
    "iPadOS: 12.5.0 - 27.0.0",
    "macCatalyst: 12.5.0 - 27.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "ExposureNotification",
  "identifier" : "/documentation/ExposureNotification/ENError",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Exposure Notification"
    ],
    "preciseIdentifier" : "s:SC11ENErrorCodeLeV"
  },
  "title" : "ENError"
}
-->

# ENError

Errors that the exposure notification framework issues.

```
struct ENError
```

## Overview> Important:
> This structure is available in iOS 12.5, and in iOS 13.5 and later.

## Topics

### Description

### Error Codes

[`static var apiMisuse: ENError.Code`](/documentation/ExposureNotification/ENError/apiMisuse)

The API use is incorrect.

[`static var badFormat: ENError.Code`](/documentation/ExposureNotification/ENError/badFormat)

A file is formated incorrectly.

[`static var badParameter: ENError.Code`](/documentation/ExposureNotification/ENError/badParameter)

The parameter is missing or incorrect.

[`static var bluetoothOff: ENError.Code`](/documentation/ExposureNotification/ENError/bluetoothOff)

Bluetooth is turned off.

[`static var insufficientMemory: ENError.Code`](/documentation/ExposureNotification/ENError/insufficientMemory)

The memory is insufficient to perform the operation.

[`static var insufficientStorage: ENError.Code`](/documentation/ExposureNotification/ENError/insufficientStorage)

The storage is insufficient to enable notifications.

[`static var `internal`: ENError.Code`](/documentation/ExposureNotification/ENError/internal)

A bug in the internal notification framework.

[`static var invalidated: ENError.Code`](/documentation/ExposureNotification/ENError/invalidated)

A call to invalidate before the operation completes normally.

[`static var notAuthorized: ENError.Code`](/documentation/ExposureNotification/ENError/notAuthorized)

The user has denied access to the notification framework.

[`static var notEnabled: ENError.Code`](/documentation/ExposureNotification/ENError/notEnabled)

Notification is not enabled.

[`static var notEntitled: ENError.Code`](/documentation/ExposureNotification/ENError/notEntitled)

Process of calling is not entitled.

[`static var rateLimited: ENError.Code`](/documentation/ExposureNotification/ENError/rateLimited)

API calls are too frequent.

[`static var restricted: ENError.Code`](/documentation/ExposureNotification/ENError/restricted)

Exposure notification is disabled due to system policies.

[`static var unknown: ENError.Code`](/documentation/ExposureNotification/ENError/unknown)

Failure has an unknown cause.

[`static var unsupported: ENError.Code`](/documentation/ExposureNotification/ENError/unsupported)

Operation is not supported.

[`static var dataInaccessible: ENError.Code`](/documentation/ExposureNotification/ENError/dataInaccessible)

The user must unlock the device before it can access data.

[`static var travelStatusNotAvailable: ENError.Code`](/documentation/ExposureNotification/ENError/travelStatusNotAvailable)

The system can’t determine whether the user is traveling.

[`enum Code`](/documentation/ExposureNotification/ENError/Code)

Error codes that the exposure notification framework issues.

### Operator Functions

### Type Properties

[`static var errorDomain: String`](/documentation/ExposureNotification/ENError/errorDomain)

## Relationships

### Conforms To

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

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

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

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

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

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

---

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)