nhibernate/nhibernate-core — pull request #217 by alex-davidson (2013-07-25 08:07:37+00:00)
Title: Makes the session available to ISQLExceptionConverter.

Enables more advanced exception translations based on the persistence
context.

When using batching, details about the entity name and ID which caused a failure are unavailable to the exception converter. Given the name of a violated constraint, however, it is often possible to determine the offending entity by type if we have access to the persistence context. This commit makes the relevant information available to exception converters.