diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2006-07-13 21:05:52 +0000 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2006-07-13 21:05:52 +0000 |
commit | 3bf88a1741b75efc4ef331998b5f29fec4268e85 (patch) | |
tree | 0a4a1d100877e463647b778b21e0d95d15e45bbc /lib/sqlalchemy/exceptions.py | |
parent | 70469bf26092095590aa441f41f5bcde11968ffc (diff) | |
download | sqlalchemy-3bf88a1741b75efc4ef331998b5f29fec4268e85.tar.gz |
DB connection errors wrapped in DBAPIErrors
Diffstat (limited to 'lib/sqlalchemy/exceptions.py')
-rw-r--r-- | lib/sqlalchemy/exceptions.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/sqlalchemy/exceptions.py b/lib/sqlalchemy/exceptions.py index 6aeca3efc..c803a06c3 100644 --- a/lib/sqlalchemy/exceptions.py +++ b/lib/sqlalchemy/exceptions.py @@ -49,4 +49,6 @@ class AssertionError(SQLAlchemyError): class DBAPIError(SQLAlchemyError): """something weird happened with a particular DBAPI version""" - pass + def __init__(self, message, orig): + SQLAlchemyError.__init__(self, "(%s) (%s) %s"% (message, orig.__class__.__name__, str(orig))) + self.orig = orig |