From 38ba038d2bc4616c0c59611ed8142cda362b4b82 Mon Sep 17 00:00:00 2001 From: Ondra Chaloupka Date: Thu, 22 Apr 2021 09:48:51 +0200 Subject: [PATCH] [#191] using term unchecked exception instead of RuntimeException for rollback for CDI interceptor Signed-off-by: Ondra Chaloupka --- spec/src/main/asciidoc/Transactions.adoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/src/main/asciidoc/Transactions.adoc b/spec/src/main/asciidoc/Transactions.adoc index f0252ac..24ac43b 100644 --- a/spec/src/main/asciidoc/Transactions.adoc +++ b/spec/src/main/asciidoc/Transactions.adoc @@ -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 @@ -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]