---
title: SCStreamError.Code
framework: screencapturekit
role: symbol
role_heading: Enumeration
path: screencapturekit/scstreamerror/code
---

# SCStreamError.Code

Codes for user cancellation events and errors that can occur in ScreenCaptureKit.

## Declaration

```swift
enum Code
```

## Topics

### User cancellation

- [SCStreamError.Code.userStopped](screencapturekit/scstreamerror/code/userstopped.md)

### Privacy and entitlements

- [SCStreamError.Code.userDeclined](screencapturekit/scstreamerror/code/userdeclined.md)
- [SCStreamError.Code.missingEntitlements](screencapturekit/scstreamerror/code/missingentitlements.md)

### Stream management

- [SCStreamError.Code.attemptToStartStreamState](screencapturekit/scstreamerror/code/attempttostartstreamstate.md)
- [SCStreamError.Code.attemptToStopStreamState](screencapturekit/scstreamerror/code/attempttostopstreamstate.md)
- [SCStreamError.Code.attemptToUpdateFilterState](screencapturekit/scstreamerror/code/attempttoupdatefilterstate.md)
- [SCStreamError.Code.attemptToConfigState](screencapturekit/scstreamerror/code/attempttoconfigstate.md)
- [SCStreamError.Code.failedToStart](screencapturekit/scstreamerror/code/failedtostart.md)
- [SCStreamError.Code.removingStream](screencapturekit/scstreamerror/code/removingstream.md)
- [SCStreamError.Code.failedToStartAudioCapture](screencapturekit/scstreamerror/code/failedtostartaudiocapture.md)
- [SCStreamError.Code.failedToStopAudioCapture](screencapturekit/scstreamerror/code/failedtostopaudiocapture.md)
- [SCStreamError.Code.failedToStartMicrophoneCapture](screencapturekit/scstreamerror/code/failedtostartmicrophonecapture.md)
- [SCStreamError.Code.systemStoppedStream](screencapturekit/scstreamerror/code/systemstoppedstream.md)
- [SCStreamError.Code.internalError](screencapturekit/scstreamerror/code/internalerror.md)

### Shareable content

- [SCStreamError.Code.noCaptureSource](screencapturekit/scstreamerror/code/nocapturesource.md)
- [SCStreamError.Code.noDisplayList](screencapturekit/scstreamerror/code/nodisplaylist.md)
- [SCStreamError.Code.noWindowList](screencapturekit/scstreamerror/code/nowindowlist.md)
- [SCStreamError.Code.failedApplicationConnectionInvalid](screencapturekit/scstreamerror/code/failedapplicationconnectioninvalid.md)
- [SCStreamError.Code.failedApplicationConnectionInterrupted](screencapturekit/scstreamerror/code/failedapplicationconnectioninterrupted.md)
- [SCStreamError.Code.failedNoMatchingApplicationContext](screencapturekit/scstreamerror/code/failednomatchingapplicationcontext.md)

### Invalid parameters

- [SCStreamError.Code.invalidParameter](screencapturekit/scstreamerror/code/invalidparameter.md)

### Creating an error

- [init(rawValue:)](screencapturekit/scstreamerror/code/init(rawvalue:).md)

### Enumeration Cases

- [SCStreamError.Code.insufficientStorage](screencapturekit/scstreamerror/code/insufficientstorage.md)
- [SCStreamError.Code.missingBackgroundMode](screencapturekit/scstreamerror/code/missingbackgroundmode.md)
- [SCStreamError.Code.notSupported](screencapturekit/scstreamerror/code/notsupported.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)
