<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 12.0.0 -",
    "tvOS: 15.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 8.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "TabularData",
  "identifier" : "/documentation/TabularData/ColumnDecodingError",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "TabularData"
    ],
    "preciseIdentifier" : "s:11TabularData19ColumnDecodingErrorV"
  },
  "title" : "ColumnDecodingError"
}
-->

# ColumnDecodingError

A column decoding error.

```
struct ColumnDecodingError
```

## Overview

This error wraps a decoding error and includes the column name and row index where the decoding error occurs.

## Topics

### Creating a decoding error

[`init(columnName: String, rowIndex: Int, decodingError: DecodingError)`](/documentation/TabularData/ColumnDecodingError/init(columnName:rowIndex:decodingError:))

Creates a column decoding error.

### Getting error information

[`var columnName: String`](/documentation/TabularData/ColumnDecodingError/columnName)

The name of the column with the error.

[`var debugDescription: String`](/documentation/TabularData/ColumnDecodingError/debugDescription)

A text representation of the column decoding error suitable for debugging.

[`var decodingError: DecodingError`](/documentation/TabularData/ColumnDecodingError/decodingError)

The underlying decoding error.

[`var rowIndex: Int`](/documentation/TabularData/ColumnDecodingError/rowIndex)

The index of the column’s element with the error.

## Relationships

### Conforms To

[`LocalizedError`](/documentation/Foundation/LocalizedError)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Sendable`](/documentation/Swift/Sendable)

[`Error`](/documentation/Swift/Error)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)