PostgreSQLStatusErrors

public enum PostgreSQLStatusErrors : Error

Programming errors

  • called open() when the connection was already opened

    Declaration

    Swift

    case alreadyOpen
  • the server sent back an irregular response

    Declaration

    Swift

    case badResponse
  • thrown when getting a single value and no rows were returned

    Declaration

    Swift

    case emptyQuery
  • thrown when a requested value type does not match what is supported by the PGType

    Declaration

    Swift

    case unsupportedDataFormat
  • thrown when PGResult is asked to get a value for invalid row number

    Declaration

    Swift

    case invalidRowNumber
  • thrown when PGResult is asked to get a value for invalid column number

    Declaration

    Swift

    case invalidColumnNumber
  • thrown when PGResult is asked to get a value for an invalid column name

    Declaration

    Swift

    case invalidColumnName
  • a query hardcoded in this library failed

    Declaration

    Swift

    case internalQueryFailed
  • query does not meet requirements of function call

    Declaration

    Swift

    case invalidQuery
  • when caller specifies a type and result is not that type

    Declaration

    Swift

    case invalidType
  • when setting parameters for a query, float columns must be specified as doubles

    Declaration

    Swift

    case floatsMustbeDoubles
  • when user code in a closure fails

    Declaration

    Swift

    case callerError