CSVDecodingError

public enum CSVDecodingError : Swift.Error

An error that occurs during the decoding of a value from the CSV representation.

  • An indication that a a non-terminated quote was found on the specified line.

    Declaration

    Swift

    case unmatchedQuotes(line: String)
  • An indication that a column with the given name exists more than once in the CSV data.

    Declaration

    Swift

    case duplicatedColumn(name: String)
  • An indication that a value of the given type could not be decoded because it did not match the type found in the cell content.

    Declaration

    Swift

    case typeMismatch(expectedType: Any.Type, codingPath: [CodingKey], content: Substring)
  • An indication that the row with index represented by key doesn’t exist in the CSV data.

    Declaration

    Swift

    case rowNotFound(index: Int)
  • An indication that column matching the key doesn’t exist in row with the specified index.

    Declaration

    Swift

    case columnNotFound(rowIndex: Int, key: CodingKey)
  • An indication that the requested decoding operation isn’t supported by CSV data format.

    Declaration

    Swift

    case unsupportedOperation(codingPath: [CodingKey])
  • An indication that the requested nested decoding operation isn’t supported by CSV data format.

    Declaration

    Swift

    case unsupportedNestingOperation(codingPath: [CodingKey])
  • An indication that the requested decoding of a simple type isn’t supported by CSV data format.

    Declaration

    Swift

    case unsupportedSingleValueDecoding(codingPath: [CodingKey])