---
title: runtimeErrorNotification
framework: avfoundation
role: symbol
role_heading: Type Property
path: avfoundation/avcapturesession/runtimeerrornotification
---

# runtimeErrorNotification

A notification the system posts when an error occurs during a capture session.

## Declaration

```swift
class let runtimeErrorNotification: NSNotification.Name
```

## Discussion

Discussion Retrieve the underlying error from the notification’s user information dictionary using the key AVCaptureSessionErrorKey.

## Topics

### User info keys

- [AVCaptureSessionErrorKey](avfoundation/avcapturesessionerrorkey.md)

## See Also

### Observing session state

- [isRunning](avfoundation/avcapturesession/isrunning.md)
- [isInterrupted](avfoundation/avcapturesession/isinterrupted.md)
- [didStartRunningNotification](avfoundation/avcapturesession/didstartrunningnotification.md)
- [didStopRunningNotification](avfoundation/avcapturesession/didstoprunningnotification.md)
- [wasInterruptedNotification](avfoundation/avcapturesession/wasinterruptednotification.md)
- [interruptionEndedNotification](avfoundation/avcapturesession/interruptionendednotification.md)
