summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/exceptions.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2008-01-09 18:52:35 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2008-01-09 18:52:35 +0000
commit979c9323dce30c3a12552668fc93958cba566cca (patch)
tree897ac894240203b13f580db3fc0182e506ebf21f /lib/sqlalchemy/exceptions.py
parenteefd1f78a2ead8245791140e54fa3c32c4b41794 (diff)
downloadsqlalchemy-979c9323dce30c3a12552668fc93958cba566cca.tar.gz
- fixed bug with session.dirty when using "mutable scalars"
(such as PickleTypes) - added a more descriptive error message when flushing on a relation() that has non-locally-mapped columns in its primary or secondary join condition
Diffstat (limited to 'lib/sqlalchemy/exceptions.py')
-rw-r--r--lib/sqlalchemy/exceptions.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/sqlalchemy/exceptions.py b/lib/sqlalchemy/exceptions.py
index 8dbbb91c8..02cee5063 100644
--- a/lib/sqlalchemy/exceptions.py
+++ b/lib/sqlalchemy/exceptions.py
@@ -46,7 +46,10 @@ class InvalidRequestError(SQLAlchemyError):
This error generally corresponds to runtime state errors.
"""
-
+class UnmappedColumnError(InvalidRequestError):
+ """A mapper was asked to return mapped information about a column
+ which it does not map"""
+
class NoSuchTableError(InvalidRequestError):
"""SQLAlchemy was asked to load a table's definition from the
database, but the table doesn't exist.