-
Notifications
You must be signed in to change notification settings - Fork 38.7k
Description
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."

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