Skip to content

Documentation for Vavr's Try method to trigger transaction rollbacks#30108

Merged
jhoeller merged 1 commit intospring-projects:mainfrom
edyda99:issue-29560
Mar 28, 2023
Merged

Documentation for Vavr's Try method to trigger transaction rollbacks#30108
jhoeller merged 1 commit intospring-projects:mainfrom
edyda99:issue-29560

Conversation

@edyda99
Copy link
Copy Markdown
Contributor

@edyda99 edyda99 commented Mar 12, 2023

Updated the Spring Framework documentation to include an example of using Vavr's Try monad to trigger transaction rollbacks when a @Transactional-annotated method returns a Failure. The modified documentation demonstrates how to use Try in a transactional method and how to check if an exception has been wrapped inside a Try.Failure instance. Additionally, a link to the official Vavr documentation was added to provide more information on the Try method.

Closes #29560

Updated the Spring Framework documentation to include an example of using Vavr's Try monad to trigger transaction rollbacks when a @Transactional-annotated method returns a Failure. The modified documentation demonstrates how to use Try in a transactional method and how to check if an exception has been wrapped inside a Try.Failure instance. Additionally, a link to the official Vavr documentation was added to provide more information on the Try method.
@edyda99 edyda99 changed the title feat: Add support for Vavr's Try monad to trigger transaction rollbacks feat: Add documentation for Vavr's Try monad to trigger transaction rollbacks Mar 12, 2023
@edyda99 edyda99 changed the title feat: Add documentation for Vavr's Try monad to trigger transaction rollbacks feat: Add documentation for Vavr's Try method to trigger transaction rollbacks Mar 12, 2023
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged or decided on label Mar 12, 2023
@jhoeller jhoeller changed the title feat: Add documentation for Vavr's Try method to trigger transaction rollbacks Documentation for Vavr's Try method to trigger transaction rollbacks Mar 21, 2023
@jhoeller jhoeller self-assigned this Mar 21, 2023
@jhoeller jhoeller added in: data Issues in data modules (jdbc, orm, oxm, tx) type: documentation A documentation task and removed status: waiting-for-triage An issue we've not yet triaged or decided on labels Mar 21, 2023
@jhoeller jhoeller added this to the 6.0.8 milestone Mar 21, 2023
@jhoeller jhoeller merged commit 50d01ce into spring-projects:main Mar 28, 2023
@SOHEELEE408
Copy link
Copy Markdown

@jhoeller The link to the official documentation is invalid. It would be nice to see it corrected to https://docs.vavr.io/#_try.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

in: data Issues in data modules (jdbc, orm, oxm, tx) type: documentation A documentation task

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Document support of Vavr's Try to potentially roll back declarative transactions

4 participants