<!--
{
  "documentType" : "article",
  "framework" : "ScreenCaptureKit",
  "identifier" : "/documentation/ScreenCaptureKit/error-constants",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "Error Constants"
}
-->

# Error Constants

Error code constants for framework operations.

## Topics

### User cancellation

[`static var userStopped: SCStreamError.Code`](/documentation/ScreenCaptureKit/SCStreamError/userStopped)

An error message that indicates the user stopped the stream.

### Privacy and entitlements

[`static var userDeclined: SCStreamError.Code`](/documentation/ScreenCaptureKit/SCStreamError/userDeclined)

An error message that indicates the user didn’t grant Screen Recording permission to your app.

[`static var missingEntitlements: SCStreamError.Code`](/documentation/ScreenCaptureKit/SCStreamError/missingEntitlements)

An error message that indicates missing entitlements in your app.

### Stream management

[`static var attemptToStartStreamState: SCStreamError.Code`](/documentation/ScreenCaptureKit/SCStreamError/attemptToStartStreamState)

An error message that indicates a stream is already running or doesn’t exist when trying to start a stream.

[`static var attemptToStopStreamState: SCStreamError.Code`](/documentation/ScreenCaptureKit/SCStreamError/attemptToStopStreamState)

An error message that indicates a stream is already stopped or doesn’t exist when trying to stop a stream.

[`static var attemptToUpdateFilterState: SCStreamError.Code`](/documentation/ScreenCaptureKit/SCStreamError/attemptToUpdateFilterState)

An error message that indicates a stream couldn’t update its content filter.

[`static var attemptToConfigState: SCStreamError.Code`](/documentation/ScreenCaptureKit/SCStreamError/attemptToConfigState)

An error message that indicates a stream couldn’t update its configuration.

[`static var failedToStart: SCStreamError.Code`](/documentation/ScreenCaptureKit/SCStreamError/failedToStart)

An error message that indicates a stream failed to start.

[`static var failedToStartAudioCapture: SCStreamError.Code`](/documentation/ScreenCaptureKit/SCStreamError/failedToStartAudioCapture)

An error message that indicates an audio stream failed to start.

[`static var failedToStopAudioCapture: SCStreamError.Code`](/documentation/ScreenCaptureKit/SCStreamError/failedToStopAudioCapture)

An error message that indicates an audio stream failed to stop.

[`static var failedToStartMicrophoneCapture: SCStreamError.Code`](/documentation/ScreenCaptureKit/SCStreamError/failedToStartMicrophoneCapture)

An error message that indicates microphone capture failed to start.

[`static var systemStoppedStream: SCStreamError.Code`](/documentation/ScreenCaptureKit/SCStreamError/systemStoppedStream)

An error message that indicates the system stopped the stream.

[`static var internalError: SCStreamError.Code`](/documentation/ScreenCaptureKit/SCStreamError/internalError)

An error message that indicates a stream can’t start due to a failure in ScreenCaptureKit’s internals.

[`static var removingStream: SCStreamError.Code`](/documentation/ScreenCaptureKit/SCStreamError/removingStream)

An error message that indicates a stream wasn’t removed.

### Shareable content

[`static var noCaptureSource: SCStreamError.Code`](/documentation/ScreenCaptureKit/SCStreamError/noCaptureSource)

An error message that indicates a stream doesn’t have a source to capture.

[`static var noDisplayList: SCStreamError.Code`](/documentation/ScreenCaptureKit/SCStreamError/noDisplayList)

An error message that indicates a stream doesn’t have displays available.

[`static var noWindowList: SCStreamError.Code`](/documentation/ScreenCaptureKit/SCStreamError/noWindowList)

An error message that indicates a stream doesn’t have windows available.

[`static var failedApplicationConnectionInvalid: SCStreamError.Code`](/documentation/ScreenCaptureKit/SCStreamError/failedApplicationConnectionInvalid)

An error message that indicates the stream lost its connection to an app.

[`static var failedApplicationConnectionInterrupted: SCStreamError.Code`](/documentation/ScreenCaptureKit/SCStreamError/failedApplicationConnectionInterrupted)

An error message that indicates there was an interruption in a connection to an app.

[`static var failedNoMatchingApplicationContext: SCStreamError.Code`](/documentation/ScreenCaptureKit/SCStreamError/failedNoMatchingApplicationContext)

An error message that indicates there isn’t a matching app context for streaming.

### Invalid parameters

[`static var invalidParameter: SCStreamError.Code`](/documentation/ScreenCaptureKit/SCStreamError/invalidParameter)

An error message that indicates an operation failed because of an invalid parameter value.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)