Skip to content

Improve wording for transactional rollback rule semantics #35346

@cenlm

Description

@cenlm

The description in the Rollback Rules section contains an error:

"When a rollback rule is defined with an exception type, that type will be used to match against the type of a thrown exception and its super types, providing type safety and avoiding any unintentional matches that may occur when using a pattern. For example, a value of jakarta.servlet.ServletException.class will only match thrown exceptions of type jakarta.servlet.ServletException and its subclasses."

The phrase "and its super types" should be corrected to "and its subtypes".

Corrected English Version:

"When a rollback rule is defined with an exception type, that type will be used to match against the type of a thrown exception and its subtypes, providing type safety and avoiding any unintentional matches that may occur when using a pattern. For example, a value of jakarta.servlet.ServletException.class will only match thrown exceptions of type jakarta.servlet.ServletException and its subclasses."

Image

Document Url: https://docs.spring.io/spring-framework/reference/data-access/transaction/declarative/rolling-back.html

Related Issues

Metadata

Metadata

Assignees

Labels

in: dataIssues in data modules (jdbc, orm, oxm, tx)type: documentationA documentation task

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions