ParsingError

public enum ParsingError : Error

This type provides errors that can be thrown when reading fields from a tuple in a result set.

These wrap around the errors in Tuple.ParsingError to replace the index with the database key, which is more useful when reading fields from a result set.

  • We tried to read a field beyond the end of the tuple.

    Declaration

    Swift

    case missingField(key: Tuple)
  • We tried to read a field of a different type than the one actually stored.

    Declaration

    Swift

    case incorrectTypeCode(key: Tuple, desired: Set<UInt8>, actual: UInt8)