<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 14.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreHaptics",
  "identifier" : "/documentation/CoreHaptics/CHHapticError",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Core Haptics"
    ],
    "preciseIdentifier" : "s:SC17CHHapticErrorCodeLeV"
  },
  "title" : "CHHapticError"
}
-->

# CHHapticError

A structure that represents a framework error.

```
struct CHHapticError
```

## Topics

### Inspecting an Error

[`static var errorDomain: String`](/documentation/CoreHaptics/CHHapticError/errorDomain)

[`enum Code`](/documentation/CoreHaptics/CHHapticError/Code)

Error codes for framework operations.

[Error Constants](/documentation/CoreHaptics/error-constants)

Error code constants for framework operations.

## Relationships

### Conforms To

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

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

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

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

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

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

---

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)