---
title: CHHapticError
framework: Core Haptics
role: symbol
role_heading: Structure
platforms: [iOS 13.0+, iPadOS 13.0+, Mac Catalyst 13.1+, macOS 10.15+, tvOS 14.0+, visionOS 1.0+]
path: corehaptics/chhapticerror
---

# CHHapticError

A structure that represents a framework error.

## Declaration

```swift
struct CHHapticError
```

## Topics

### Inspecting an Error

- [errorDomain](corehaptics/chhapticerror/errordomain.md)
- [CHHapticError.Code](corehaptics/chhapticerror/code.md)
- [Error Constants](corehaptics/error-constants.md)

## Relationships

### Conforms To

- [CustomNSError](foundation/customnserror.md)
- [Equatable](swift/equatable.md)
- [Error](swift/error.md)
- [Hashable](swift/hashable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Haptic errors

- [CoreHapticsErrorDomain](corehaptics/corehapticserrordomain.md)
- [CHHapticError.Code](corehaptics/chhapticerror/code.md)
