mirror of
https://github.com/corda/corda.git
synced 2025-02-20 09:26:41 +00:00
Database transaction can be set to retry failure due to any exception with a cause or a nested cause of SQLException type. Rationale: By the default transaction is retried only for SQLException. It may happen that SQL Exception is wrapped by Hibernate exception, allow to retry such cases if requested e.g. database.transaction(recoverableFailureTolerance = 3, recoverAnyNestedSQLException = true) { .... }