---
title: EncodingError.Context
framework: swift
role: symbol
role_heading: Structure
path: swift/encodingerror/context
---

# EncodingError.Context

The context in which the error occurred.

## Declaration

```swift
struct Context
```

## Topics

### Initializers

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

### Instance Properties

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

## Relationships

### Conforms To

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