---
title: CMError
framework: coremotion
role: symbol
role_heading: Structure
path: coremotion/cmerror
---

# CMError

Defines motion errors.

## Declaration

```swift
struct CMError
```

## Topics

### Errors

- [CMErrorDeviceRequiresMovement](coremotion/cmerrordevicerequiresmovement.md)
- [CMErrorInvalidAction](coremotion/cmerrorinvalidaction.md)
- [CMErrorInvalidParameter](coremotion/cmerrorinvalidparameter.md)
- [CMErrorMotionActivityNotAuthorized](coremotion/cmerrormotionactivitynotauthorized.md)
- [CMErrorMotionActivityNotAvailable](coremotion/cmerrormotionactivitynotavailable.md)
- [CMErrorMotionActivityNotEntitled](coremotion/cmerrormotionactivitynotentitled.md)
- [CMErrorNilData](coremotion/cmerrornildata.md)
- [CMErrorNULL](coremotion/cmerrornull.md)
- [CMErrorNotAuthorized](coremotion/cmerrornotauthorized.md)
- [CMErrorNotAvailable](coremotion/cmerrornotavailable.md)
- [CMErrorNotEntitled](coremotion/cmerrornotentitled.md)
- [CMErrorSize](coremotion/cmerrorsize.md)
- [CMErrorTrueNorthNotAvailable](coremotion/cmerrortruenorthnotavailable.md)
- [CMErrorUnknown](coremotion/cmerrorunknown.md)

### Initializers

- [init(_:)](coremotion/cmerror/init(_:).md)
- [init(rawValue:)](coremotion/cmerror/init(rawvalue:).md)

### Instance Properties

- [rawValue](coremotion/cmerror/rawvalue.md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)

## See Also

### Understanding Errors

- [CMErrorDomain](coremotion/cmerrordomain.md)
