summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/exceptions.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2006-06-26 02:06:44 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2006-06-26 02:06:44 +0000
commitdc1cc365c244a0f0c40c6b2348b868f8f98b8020 (patch)
tree35333990d77a5158d24c0003e4a33f577795ecca /lib/sqlalchemy/exceptions.py
parentff8458ab3e3e71c54aa8adaba6508f7def452c1f (diff)
downloadsqlalchemy-dc1cc365c244a0f0c40c6b2348b868f8f98b8020.tar.gz
when QueuePool times out it raises a TimeoutError instead of
erroneously making another connection
Diffstat (limited to 'lib/sqlalchemy/exceptions.py')
-rw-r--r--lib/sqlalchemy/exceptions.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/sqlalchemy/exceptions.py b/lib/sqlalchemy/exceptions.py
index 2713fb754..6aeca3efc 100644
--- a/lib/sqlalchemy/exceptions.py
+++ b/lib/sqlalchemy/exceptions.py
@@ -24,6 +24,10 @@ class ArgumentError(SQLAlchemyError):
"""raised for all those conditions where invalid arguments are sent to constructed
objects. This error generally corresponds to construction time state errors."""
pass
+
+class TimeoutError(SQLAlchemyError):
+ """raised when a connection pool times out on getting a connection"""
+ pass
class FlushError(SQLAlchemyError):
"""raised when an invalid condition is detected upon a flush()"""