---
title: SRError
framework: sensorkit
role: symbol
role_heading: Structure
path: sensorkit/srerror
---

# SRError

An error that SensorKit reports.

## Declaration

```swift
struct SRError
```

## Topics

### Inspecting Error Information

- [errorDomain](sensorkit/srerror/errordomain.md)

### Identifying an Error Cause

- [promptDeclined](sensorkit/srerror/promptdeclined.md)
- [dataInaccessible](sensorkit/srerror/datainaccessible.md)
- [fetchRequestInvalid](sensorkit/srerror/fetchrequestinvalid.md)
- [invalidEntitlement](sensorkit/srerror/invalidentitlement.md)
- [noAuthorization](sensorkit/srerror/noauthorization.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

### Interpreting Errors

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