Skip to content

Commit

Permalink
[jakartaee#191] using term unchecked exception instead of RuntimeExce…
Browse files Browse the repository at this point in the history
…ption for rollback for CDI interceptor
  • Loading branch information
ochaloup committed Apr 22, 2021
1 parent 7de86ad commit d837346
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/src/main/asciidoc/Transactions.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -1073,7 +1073,7 @@ must be thrown

By default checked exceptions do not result
in the transactional interceptor marking the transaction for rollback
and instances of `RuntimeException` and its subclasses do. This default
and unchecked exception instances do. This default
behavior can be modified by specifying exceptions that result in the
interceptor marking the transaction for rollback and/or exceptions that
do not result in rollback. The `rollbackOn` element can be set to indicate
Expand Down Expand Up @@ -1104,7 +1104,7 @@ interceptor.
----

The following will cause the transaction to
be marked for rollback for all runtime exceptions and all `SQLException`
be marked for rollback for all unchecked exceptions and all `SQLException`
types except for `SQLWarning`.

[source,java]
Expand All @@ -1115,7 +1115,7 @@ types except for `SQLWarning`.
----

The `TransactionalException` thrown from the
`Transactional` interceptors implementation is a `RuntimeException` and
`Transactional` interceptors implementation is an unchecked `RuntimeException` and
therefore by default any transaction that was started as a result of a
`Transactional` annotation earlier in the call stream will be marked for
rollback as a result of the `TransactionalException` being thrown by the
Expand Down

0 comments on commit d837346

Please sign in to comment.