Skip to content

Commit

Permalink
add unexpected rollback exception (#2313)
Browse files Browse the repository at this point in the history
* add unexpected rollback exception

* add unexpected rollback exception
  • Loading branch information
anthony-britton-moj authored Sep 27, 2023
1 parent aa4f1e0 commit 1195499
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import org.springframework.jdbc.CannotGetJdbcConnectionException
import org.springframework.orm.ObjectOptimisticLockingFailureException
import org.springframework.stereotype.Component
import org.springframework.transaction.CannotCreateTransactionException
import org.springframework.transaction.UnexpectedRollbackException
import uk.gov.justice.digital.hmpps.config.AwsCondition
import uk.gov.justice.digital.hmpps.messaging.NotificationHandler
import uk.gov.justice.digital.hmpps.retry.retry
Expand All @@ -38,7 +39,8 @@ class AwsNotificationListener(
CannotAcquireLockException::class,
ObjectOptimisticLockingFailureException::class,
CannotCreateTransactionException::class,
CannotGetJdbcConnectionException::class
CannotGetJdbcConnectionException::class,
UnexpectedRollbackException::class
)
) { handler.handle(message) }
} catch (e: Throwable) {
Expand Down

0 comments on commit 1195499

Please sign in to comment.