---
title: RPRecordingErrorCode
framework: replaykit
role: symbol
role_heading: Enumeration
path: replaykit/rprecordingerrorcode
---

# RPRecordingErrorCode

The ReplayKit error domain codes.

## Declaration

```swift
enum RPRecordingErrorCode
```

## Topics

### Errors

- [RPRecordingErrorCode.activePhoneCall](replaykit/rprecordingerrorcode/activephonecall.md)
- [RPRecordingErrorCode.attemptToStartInRecordingState](replaykit/rprecordingerrorcode/attempttostartinrecordingstate.md)
- [RPRecordingErrorCode.attemptToStopNonRecording](replaykit/rprecordingerrorcode/attempttostopnonrecording.md)
- [RPRecordingErrorCode.broadcastInvalidSession](replaykit/rprecordingerrorcode/broadcastinvalidsession.md)
- [RPRecordingErrorCode.broadcastSetupFailed](replaykit/rprecordingerrorcode/broadcastsetupfailed.md)
- [RPRecordingErrorCode.carPlay](replaykit/rprecordingerrorcode/carplay.md)
- [RPRecordingErrorCode.codeSuccessful](replaykit/rprecordingerrorcode/codesuccessful.md)
- [RPRecordingErrorCode.contentResize](replaykit/rprecordingerrorcode/contentresize.md)
- [RPRecordingErrorCode.disabled](replaykit/rprecordingerrorcode/disabled.md)
- [RPRecordingErrorCode.entitlements](replaykit/rprecordingerrorcode/entitlements.md)
- [RPRecordingErrorCode.failed](replaykit/rprecordingerrorcode/failed.md)
- [RPRecordingErrorCode.failedApplicationConnectionInterrupted](replaykit/rprecordingerrorcode/failedapplicationconnectioninterrupted.md)
- [RPRecordingErrorCode.failedApplicationConnectionInvalid](replaykit/rprecordingerrorcode/failedapplicationconnectioninvalid.md)
- [RPRecordingErrorCode.failedAssetWriterExportCanceled](replaykit/rprecordingerrorcode/failedassetwriterexportcanceled.md)
- [RPRecordingErrorCode.failedAssetWriterExportFailed](replaykit/rprecordingerrorcode/failedassetwriterexportfailed.md)
- [RPRecordingErrorCode.failedAssetWriterFailedToSave](replaykit/rprecordingerrorcode/failedassetwriterfailedtosave.md)
- [RPRecordingErrorCode.failedAssetWriterInWrongState](replaykit/rprecordingerrorcode/failedassetwriterinwrongstate.md)
- [RPRecordingErrorCode.failedIncorrectTimeStamps](replaykit/rprecordingerrorcode/failedincorrecttimestamps.md)
- [RPRecordingErrorCode.failedMediaServicesFailure](replaykit/rprecordingerrorcode/failedmediaservicesfailure.md)
- [RPRecordingErrorCode.failedNoAssetWriter](replaykit/rprecordingerrorcode/failednoassetwriter.md)
- [RPRecordingErrorCode.failedNoMatchingApplicationContext](replaykit/rprecordingerrorcode/failednomatchingapplicationcontext.md)
- [RPRecordingErrorCode.failedToObtainURL](replaykit/rprecordingerrorcode/failedtoobtainurl.md)
- [RPRecordingErrorCode.failedToProcessFirstSample](replaykit/rprecordingerrorcode/failedtoprocessfirstsample.md)
- [RPRecordingErrorCode.failedToRemoveFile](replaykit/rprecordingerrorcode/failedtoremovefile.md)
- [RPRecordingErrorCode.failedToStartCaptureStack](replaykit/rprecordingerrorcode/failedtostartcapturestack.md)
- [RPRecordingErrorCode.failedToStart](replaykit/rprecordingerrorcode/failedtostart.md)
- [RPRecordingErrorCode.failedToSave](replaykit/rprecordingerrorcode/failedtosave.md)
- [RPRecordingErrorCode.filePermissions](replaykit/rprecordingerrorcode/filepermissions.md)
- [RPRecordingErrorCode.insufficientStorage](replaykit/rprecordingerrorcode/insufficientstorage.md)
- [RPRecordingErrorCode.interrupted](replaykit/rprecordingerrorcode/interrupted.md)
- [RPRecordingErrorCode.invalidParameter](replaykit/rprecordingerrorcode/invalidparameter.md)
- [RPRecordingErrorCode.photoFailure](replaykit/rprecordingerrorcode/photofailure.md)
- [RPRecordingErrorCode.recordingInvalidSession](replaykit/rprecordingerrorcode/recordinginvalidsession.md)
- [RPRecordingErrorCode.systemDormancy](replaykit/rprecordingerrorcode/systemdormancy.md)
- [RPRecordingErrorCode.unknown](replaykit/rprecordingerrorcode/unknown.md)
- [RPRecordingErrorCode.userDeclined](replaykit/rprecordingerrorcode/userdeclined.md)
- [RPRecordingErrorCode.videoMixingFailure](replaykit/rprecordingerrorcode/videomixingfailure.md)

### Enumeration Cases

- [RPRecordingErrorCode.exportClipToURLInProgress](replaykit/rprecordingerrorcode/exportcliptourlinprogress.md)

### Initializers

- [init(rawValue:)](replaykit/rprecordingerrorcode/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

### Errors

- [RPRecordingErrorDomain](replaykit/rprecordingerrordomain.md)
- [SCStreamErrorDomain](replaykit/scstreamerrordomain.md)
