summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/exceptions.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sqlalchemy/exceptions.py')
-rw-r--r--lib/sqlalchemy/exceptions.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/sqlalchemy/exceptions.py b/lib/sqlalchemy/exceptions.py
index 16a288503..16df317e2 100644
--- a/lib/sqlalchemy/exceptions.py
+++ b/lib/sqlalchemy/exceptions.py
@@ -50,7 +50,11 @@ class NoSuchTableError(InvalidRequestError):
class AssertionError(SQLAlchemyError):
"""corresponds to internal state being detected in an invalid state"""
pass
-
+
+class NoSuchColumnError(KeyError, SQLAlchemyError):
+ """raised by RowProxy when a nonexistent column is requested from a row"""
+ pass
+
class DBAPIError(SQLAlchemyError):
"""something weird happened with a particular DBAPI version"""
def __init__(self, message, orig):