---
title: DecodingError.Context
framework: swift
role: symbol
role_heading: Structure
path: swift/decodingerror/context
---

# DecodingError.Context

The context in which the error occurred.

## Declaration

```swift
struct Context
```

## Topics

### Initializers

- [init(codingPath:debugDescription:underlyingError:)](swift/decodingerror/context/init(codingpath:debugdescription:underlyingerror:).md)

### Instance Properties

- [codingPath](swift/decodingerror/context/codingpath.md)
- [debugDescription](swift/decodingerror/context/debugdescription.md)
- [underlyingError](swift/decodingerror/context/underlyingerror.md)

## Relationships

### Conforms To

- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
