]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Added an exception hierarchy shadowing DB-API exc types
authorJason Kirtland <jek@discorporate.us>
Sat, 11 Aug 2007 23:15:32 +0000 (23:15 +0000)
committerJason Kirtland <jek@discorporate.us>
Sat, 11 Aug 2007 23:15:32 +0000 (23:15 +0000)
commit2d8b5bb4f36e5624f25b170391fe42d3bfbeb623
treea6267f998e2c54ef3d1405d23bd3a6a1618280ef
parent2fbeeb125c83664d684cfabdfa8548d518e758a6
Added an exception hierarchy shadowing DB-API exc types
No more generic SQLErrors wrappers- the shadow type matching the DB-API error is raised. [ticket:706]
SQLError is now (also) DBAPIError.
DBAPIError and subtype constructors will refuse to wrap a SystemExit or KeyboardInterrupt, returningthe original interrupt exception instead of a new instance. [ticket:689]
Added a passthroughs for SE/KI exceptions in a couple except-and-discard situations
lib/sqlalchemy/engine/base.py
lib/sqlalchemy/engine/default.py
lib/sqlalchemy/engine/strategies.py
lib/sqlalchemy/exceptions.py
lib/sqlalchemy/pool.py