Skip to content

Commit

Permalink
Remove deprecated RunOptions mention in the transactions docs
Browse files Browse the repository at this point in the history
  • Loading branch information
xstefank committed Sep 26, 2024
1 parent 5accd78 commit 901489f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions docs/src/main/asciidoc/transaction.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,6 @@ a functional approach that allows you to run a lambda within the scope of a tran
[source,java]
----
import io.quarkus.narayana.jta.QuarkusTransaction;
import io.quarkus.narayana.jta.RunOptions;
public class TransactionExample {
Expand All @@ -191,7 +190,7 @@ public class TransactionExample {
.timeout(10)
.exceptionHandler((throwable) -> {
if (throwable instanceof SomeException) {
return RunOptions.ExceptionResult.COMMIT;
return TransactionExceptionResult.COMMIT;
}
return TransactionExceptionResult.ROLLBACK;
})
Expand Down

0 comments on commit 901489f

Please sign in to comment.