diff options
author | Jason Kirtland <jek@discorporate.us> | 2007-07-28 19:51:55 +0000 |
---|---|---|
committer | Jason Kirtland <jek@discorporate.us> | 2007-07-28 19:51:55 +0000 |
commit | 9f100231798d83f2bf4a53494eb5199864a0094d (patch) | |
tree | 829e6165c1f38ae042ac5c41da673d1a397370a7 /lib/sqlalchemy/exceptions.py | |
parent | 7a0a1cbc817eb0cab90118f288e9a65c7ac35aaa (diff) | |
download | sqlalchemy-9f100231798d83f2bf4a53494eb5199864a0094d.tar.gz |
Added pool hooks for connection creation, check out and check in.
Diffstat (limited to 'lib/sqlalchemy/exceptions.py')
-rw-r--r-- | lib/sqlalchemy/exceptions.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/sqlalchemy/exceptions.py b/lib/sqlalchemy/exceptions.py index 55c345bd7..7fe5cf518 100644 --- a/lib/sqlalchemy/exceptions.py +++ b/lib/sqlalchemy/exceptions.py @@ -89,3 +89,7 @@ class DBAPIError(SQLAlchemyError): def __init__(self, message, orig): SQLAlchemyError.__init__(self, "(%s) (%s) %s"% (message, orig.__class__.__name__, str(orig))) self.orig = orig + +class DisconnectionError(SQLAlchemyError): + """Raised within ``Pool`` when a disconnect is detected on a raw DBAPI connection.""" + pass |