---
title: SRError.Code
framework: sensorkit
role: symbol
role_heading: Enumeration
path: sensorkit/srerror/code
---

# SRError.Code

The kinds of problems that stop a recording or a fetch.

## Declaration

```swift
enum Code
```

## Topics

### Errors

- [SRError.Code.promptDeclined](sensorkit/srerror/code/promptdeclined.md)
- [SRError.Code.dataInaccessible](sensorkit/srerror/code/datainaccessible.md)
- [SRError.Code.fetchRequestInvalid](sensorkit/srerror/code/fetchrequestinvalid.md)
- [SRError.Code.invalidEntitlement](sensorkit/srerror/code/invalidentitlement.md)
- [SRError.Code.noAuthorization](sensorkit/srerror/code/noauthorization.md)

### Creating an error

- [init(rawValue:)](sensorkit/srerror/code/init(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)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Interpreting Errors

- [SRErrorDomain](sensorkit/srerrordomain.md)
- [SRError](sensorkit/srerror.md)
