mirror of
https://github.com/corda/corda.git
synced 2025-02-21 01:42:24 +00:00
When a non-database exception is thrown out of a `withEntityManager` block, always check if the session needs to be rolled back. This means if a database error is caught and a new non-database error is thrown out of the `withEntityManager` block, the transaction is still rolled back. The flow can then continue progressing as normal.