<!--
{
  "availability" : [
    "macOS: 15.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreHID",
  "identifier" : "/documentation/CoreHID/HIDDeviceError",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Core HID"
    ],
    "preciseIdentifier" : "s:7CoreHID14HIDDeviceErrorO"
  },
  "title" : "HIDDeviceError"
}
-->

# HIDDeviceError

Errors that the framework can throw.

```
enum HIDDeviceError
```

## Topics

### Enumeration Cases

[`case aborted`](/documentation/CoreHID/HIDDeviceError/aborted)

The request was aborted.

[`case badArgument`](/documentation/CoreHID/HIDDeviceError/badArgument)

The request contains an inappropriate argument.

[`case busy`](/documentation/CoreHID/HIDDeviceError/busy)

The device is busy.

[`case deviceError`](/documentation/CoreHID/HIDDeviceError/deviceError)

There was an error with the device that couldn’t be further determined.

[`case exclusiveAccess`](/documentation/CoreHID/HIDDeviceError/exclusiveAccess)

Another client posesses exclusive access to this device.

[`case ioError`](/documentation/CoreHID/HIDDeviceError/ioError)

An input/output error occurred between the host and the device.

[`case messageTooLarge`](/documentation/CoreHID/HIDDeviceError/messageTooLarge)

The data provided to a function was too large for the device to handle.

[`case noPower`](/documentation/CoreHID/HIDDeviceError/noPower)

The device isn’t powered.

[`case noResources`](/documentation/CoreHID/HIDDeviceError/noResources)

The device doesn’t have the resources required to handle this request.

[`case notPermitted`](/documentation/CoreHID/HIDDeviceError/notPermitted)

The client isn’t permitted to make this request with the provided arguments.

[`case notPrivileged`](/documentation/CoreHID/HIDDeviceError/notPrivileged)

The client doesn’t have the privileges required to make this request.

[`case notReady`](/documentation/CoreHID/HIDDeviceError/notReady)

The device isn’t ready for this request.

[`case notResponding`](/documentation/CoreHID/HIDDeviceError/notResponding)

The device isn’t responding.

[`case timeout`](/documentation/CoreHID/HIDDeviceError/timeout)

The request timed out.

[`case unknown(Int32)`](/documentation/CoreHID/HIDDeviceError/unknown(_:))

A catch-all for uncommon errors.

[`case unsupported`](/documentation/CoreHID/HIDDeviceError/unsupported)

The request with the provided arguments isn’t supported.

## Relationships

### Conforms To

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

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

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

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

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

---

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)