---
title: failureReason
framework: mediadevice
role: symbol
role_heading: Instance Property
path: mediadevice/mediadeviceerror/failurereason
---

# failureReason

A localized explanation of the reason for the error.

## Declaration

```swift
var failureReason: String? { get }
```
