Skip to content

Commit

Permalink
[#191] using term unchecked exception instead of RuntimeException for…
Browse files Browse the repository at this point in the history
… rollback for CDI interceptor

Signed-off-by: Ondra Chaloupka <[email protected]>
  • Loading branch information
ochaloup committed Sep 17, 2021
1 parent 7de86ad commit 38ba038
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 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 Down

0 comments on commit 38ba038

Please sign in to comment.