class documentation

class DisconnectionError(SQLAlchemyError):

Known subclasses: sqlalchemy.exc.InvalidatePoolError

View In Hierarchy

A disconnect is detected on a raw DB-API connection.

This error is raised and consumed internally by a connection pool. It can be raised by the _events.PoolEvents.checkout event so that the host pool forces a retry; the exception will be caught three times in a row before the pool gives up and raises ~sqlalchemy.exc.InvalidRequestError regarding the connection attempt.

Class Variable invalidate​_pool Undocumented

Inherited from SQLAlchemyError:

Method __str__ Undocumented
Method __unicode__ Undocumented
Method ​_message Undocumented
Method ​_sql​_message Undocumented

Inherited from HasDescriptionCode (via SQLAlchemyError):

Method __init__ Undocumented
Method ​_code​_str Undocumented
Instance Variable code Undocumented
invalidate_pool: bool =

Undocumented