---
title: "DecodingError.dataCorrupted(_:)"
framework: swift
role: symbol
role_heading: Case
path: "swift/decodingerror/datacorrupted(_:)"
---

# DecodingError.dataCorrupted(_:)

An indication that the data is corrupted or otherwise invalid.

## Declaration

```swift
case dataCorrupted(DecodingError.Context)
```

## Discussion

Discussion As an associated value, this case contains the context for debugging.
