---
title: SCStreamError
framework: screencapturekit
role: symbol
role_heading: Structure
path: screencapturekit/scstreamerror
---

# SCStreamError

An instance representing a ScreenCaptureKit framework error.

## Declaration

```swift
struct SCStreamError
```

## Overview

Overview important: When a user cancels a stream, the system calls an observer’s stream(_:didStopWithError:) method with SCStreamError.Code.userStopped. Rather than treating this event as an error, handle it as an intentional user request.

## Topics

### Error inspection

- [Error Constants](screencapturekit/error-constants.md)
- [SCStreamError.Code](screencapturekit/scstreamerror/code.md)
- [errorDomain](screencapturekit/scstreamerror/errordomain.md)

### Type Properties

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

### Stream errors

- [SCStreamErrorDomain](screencapturekit/scstreamerrordomain.md)
