summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/exceptions.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2006-06-06 00:11:54 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2006-06-06 00:11:54 +0000
commitbdb41655d14caed41e93225f79e5554925a15e20 (patch)
tree7e7ecf0d0dfb59b14bc34f77c5ae29e37f9f1755 /lib/sqlalchemy/exceptions.py
parente69fa9c45d77b2c27311d54155c78ee44ce551f9 (diff)
downloadsqlalchemy-bdb41655d14caed41e93225f79e5554925a15e20.tar.gz
added "NonExistentTable" exception throw to reflection, courtesy lbruno@republico.estv.ipv.pt, for [ticket:138]
Diffstat (limited to 'lib/sqlalchemy/exceptions.py')
-rw-r--r--lib/sqlalchemy/exceptions.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/sqlalchemy/exceptions.py b/lib/sqlalchemy/exceptions.py
index c942ab4c2..2713fb754 100644
--- a/lib/sqlalchemy/exceptions.py
+++ b/lib/sqlalchemy/exceptions.py
@@ -34,6 +34,11 @@ class InvalidRequestError(SQLAlchemyError):
This error generally corresponds to runtime state errors."""
pass
+class NoSuchTableError(InvalidRequestError):
+ """sqlalchemy was asked to load a table's definition from the database,
+ but the table doesn't exist."""
+ pass
+
class AssertionError(SQLAlchemyError):
"""corresponds to internal state being detected in an invalid state"""
pass