PostgresError
public enum PostgresError : Error
Errors thrown by PostgresClientKit.
-
The Postgres server requires a
Credential.cleartextPasswordfor authentication.Declaration
Swift
case cleartextPasswordCredentialRequired -
Cursor.columnsis nil, indicating column metadata is not available.Declaration
Swift
case columnMetadataNotAvailable -
An attempt was made to operate on a closed connection.
Declaration
Swift
case connectionClosed -
An attempt was made to operate on a closed connection pool.
Declaration
Swift
case connectionPoolClosed -
An attempt was made to operate on a closed cursor.
Declaration
Swift
case cursorClosed -
The Postgres server has a parameter set to a value incompatible with PostgresClientKit.
Declaration
Swift
case invalidParameterValue(name: String, value: String, allowedValues: [String]) -
The specified username does not meet the SCRAM-SHA-256 requirements for a username.
Declaration
Swift
case invalidUsernameString -
The specified password does not meet the SCRAM-SHA-256 requirements for a password.
Declaration
Swift
case invalidPasswordString -
The Postgres server requires a
Credential.md5Passwordfor authentication.Declaration
Swift
case md5PasswordCredentialRequired -
The Postgres server requires a
Credential.scramSHA256for authentication.Declaration
Swift
case scramSHA256CredentialRequired -
The Postgres server reported an internal error or returned an invalid response.
Declaration
Swift
case serverError(description: String) -
A network error occurred in communicating with the Postgres server.
Declaration
Swift
case socketError(cause: Error) -
The Postgres server reported a SQL error.
Declaration
Swift
case sqlError(notice: Notice) -
An error occurred in establishing SSL/TLS encryption.
Declaration
Swift
case sslError(cause: Error) -
The Postgres server does not support SSL/TLS.
Declaration
Swift
case sslNotSupported -
An attempt was made to operate on a closed statement.
Declaration
Swift
case statementClosed -
The request for a connection failed because a connection was not allocated before the request timed out.
Declaration
Swift
case timedOutAcquiringConnection -
The request for a connection failed because the request backlog was too large.
Declaration
Swift
case tooManyRequestsForConnections -
The Postgres server requires a
Credential.trustfor authentication.Declaration
Swift
case trustCredentialRequired -
The authentication type required by the Postgres server is not supported by PostgresClientKit.
Declaration
Swift
case unsupportedAuthenticationType(authenticationType: String) -
The value could not be converted to the requested type.
Declaration
Swift
case valueConversionError(value: PostgresValue, type: Any.Type) -
The value is
nil.Declaration
Swift
case valueIsNil