diff options
author | Jason Kirtland <jek@discorporate.us> | 2008-01-31 19:48:13 +0000 |
---|---|---|
committer | Jason Kirtland <jek@discorporate.us> | 2008-01-31 19:48:13 +0000 |
commit | 3aed5fa544685a41c0486b39dfaeb98ac69be4af (patch) | |
tree | 38ddcf38cea3e47d4e8384cf88ca6a95ee6cb78f /lib/sqlalchemy/exceptions.py | |
parent | e1aa7573f210f76e2ddf8e45fc18007e11e5bbef (diff) | |
download | sqlalchemy-3aed5fa544685a41c0486b39dfaeb98ac69be4af.tar.gz |
- Friendlier exception messages for unbound, implicit execution
- Implicit binding failures now raise UnboundExecutionError
Diffstat (limited to 'lib/sqlalchemy/exceptions.py')
-rw-r--r-- | lib/sqlalchemy/exceptions.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/sqlalchemy/exceptions.py b/lib/sqlalchemy/exceptions.py index eda368d7c..7bac05c26 100644 --- a/lib/sqlalchemy/exceptions.py +++ b/lib/sqlalchemy/exceptions.py @@ -55,6 +55,8 @@ class NoSuchTableError(InvalidRequestError): database, but the table doesn't exist. """ +class UnboundExecutionError(InvalidRequestError): + """SQL was attempted without a database connection to execute it on.""" class AssertionError(SQLAlchemyError): """Corresponds to internal state being detected in an invalid state.""" |