Reputation: 959
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
Reputation: 3593
RollbackException is a RuntimeException. No throws necessary for that.
Upvotes: 2