lf215
lf215

Reputation: 959

How do I know if transaction code succeeded?

The examples of @Transaction I see in the official docs returns void and doesn't have a throws Exception declaration. Is there a runtime exception that happens if the transaction fails?

Upvotes: 2

Views: 162

Answers (1)

aschoerk
aschoerk

Reputation: 3593

RollbackException is a RuntimeException. No throws necessary for that.

Upvotes: 2

Related Questions