neo4j/community — Issue #122: Exception thrown by TransactionEventHandler#beforeCommit is discarded
Author: cmorgner
Created: 2011-12-12 21:17:11+00:00
State: open

When an Exception is thrown in the beforeCommit() method of a registered TransactionEventHandler, the exception is discarded in TransactionImpl (line 359 and below) instead of being propagated upwards and thrown by tx.finish() as a nested exception.

Without being able to catch the same exception outside of the transaction code, it is of little use to be able to throw an exception at all.