]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- The :class:`.exc.StatementError` or DBAPI-related subclass
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 11 Dec 2013 19:30:18 +0000 (14:30 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 11 Dec 2013 19:30:18 +0000 (14:30 -0500)
commit9087157749a0527d6af37e58166793fc7e2f0bf7
tree9e8c201bb5c01c84d14dd6ce2038955cd8d548d6
parent164bff07496c345c3c57a8b26439aa6a0fbce3b8
- The :class:`.exc.StatementError` or DBAPI-related subclass
now can accomodate additional information about the "reason" for
the exception; the :class:`.Session` now adds some detail to it
when the exception occurs within an autoflush.  This approach
is taken as opposed to combining :class:`.FlushError` with
a Python 3 style "chained exception" approach so as to maintain
compatibility both with Py2K code as well as code that already
catches ``IntegrityError`` or similar.
doc/build/changelog/changelog_09.rst
lib/sqlalchemy/exc.py
lib/sqlalchemy/orm/session.py