Errors Reference

exception pyqldb.errors.__init__.DriverClosedError[source]
exception pyqldb.errors.__init__.ExecuteError(error, is_retryable, is_invalid_session_exception, transaction_id=None)[source]
exception pyqldb.errors.__init__.IllegalStateError[source]
exception pyqldb.errors.__init__.LambdaAbortedError[source]
exception pyqldb.errors.__init__.ResultClosedError(session_token)[source]
exception pyqldb.errors.__init__.SessionClosedError[source]
exception pyqldb.errors.__init__.SessionPoolEmptyError(timeout)[source]
exception pyqldb.errors.__init__.StartTransactionError(error)[source]
exception pyqldb.errors.__init__.TransactionClosedError[source]
pyqldb.errors.__init__.is_bad_request_exception(e)[source]

Is the exception a BadRequestException?

Parameters

e (builtins.Exception) – The Exception caught.

Return type

bool

Returns

True if the exception is an BadRequestException. False otherwise.

pyqldb.errors.__init__.is_invalid_session_exception(e)[source]

Is the exception an InvalidSessionException?

Parameters

e (builtins.Exception) – The Exception caught.

Return type

bool

Returns

True if the exception is an InvalidSessionException. False otherwise.

pyqldb.errors.__init__.is_occ_conflict_exception(e)[source]

Is the exception an OccConflictException?

Parameters

e (builtins.Exception) – The Exception caught.

Return type

bool

Returns

True if the exception is an OccConflictException. False otherwise.

pyqldb.errors.__init__.is_retriable_exception(e)[source]

Is the exception a retryable exception?

Parameters

e (builtins.Exception) – The Exception caught.

Return type

bool

Returns

True if the exception is a retryable exception. False otherwise.

pyqldb.errors.__init__.is_transaction_expired_exception(e)[source]

Does this exception denote that a transaction has expired?

Parameters

e (builtins.Exception) – The Exception caught.

Return type

bool

Returns

True if the exception denote that a transaction has expired. False otherwise.