summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/engine/__init__.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2014-07-04 15:40:47 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2014-07-04 15:40:47 -0400
commitdfb5707dae454448ab3e34e9c4ffda13419ca76b (patch)
tree08e547861564b775f813f99a65e073f73b24f95b /lib/sqlalchemy/engine/__init__.py
parentc60eb86a91eac57e556c07ee2a34870c065a9830 (diff)
downloadsqlalchemy-dfb5707dae454448ab3e34e9c4ffda13419ca76b.tar.gz
- rework the entire approach to #3076. As we need to catch all exceptions
in all cases unconditionally, the number of use cases that go beyond what dbapi_error() is expecting has gone too far for an 0.9 release. Additionally, the number of things we'd like to track is really a lot more than the five arguments here, and ExecutionContext is really not suitable as totally public API for this. So restore dbapi_error to its old version, deprecate, and build out handle_error instead. This is a lot more extensible and doesn't get in the way of anything compatibility-wise.
Diffstat (limited to 'lib/sqlalchemy/engine/__init__.py')
-rw-r--r--lib/sqlalchemy/engine/__init__.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/sqlalchemy/engine/__init__.py b/lib/sqlalchemy/engine/__init__.py
index fcb38b09c..9c6460858 100644
--- a/lib/sqlalchemy/engine/__init__.py
+++ b/lib/sqlalchemy/engine/__init__.py
@@ -54,6 +54,7 @@ from .interfaces import (
Connectable,
Dialect,
ExecutionContext,
+ ExceptionContext,
# backwards compat
Compiled,