Class NoRollbackRuleAttribute
java.lang.Object
org.springframework.transaction.interceptor.RollbackRuleAttribute
org.springframework.transaction.interceptor.NoRollbackRuleAttribute
- All Implemented Interfaces:
Serializable
Tag subclass of
RollbackRuleAttribute that has the opposite behavior
to the RollbackRuleAttribute superclass.- Since:
- 09.04.2003
- Author:
- Rod Johnson, Sam Brannen
- See Also:
-
Field Summary
Fields inherited from class RollbackRuleAttribute
ROLLBACK_ON_ALL_EXCEPTIONS, ROLLBACK_ON_RUNTIME_EXCEPTIONS -
Constructor Summary
ConstructorsConstructorDescriptionNoRollbackRuleAttribute(Class<?> exceptionType) Create a new instance of theNoRollbackRuleAttributeclass for the givenexceptionType.NoRollbackRuleAttribute(String exceptionPattern) Create a new instance of theNoRollbackRuleAttributeclass for the suppliedexceptionPattern. -
Method Summary
Methods inherited from class RollbackRuleAttribute
equals, getDepth, getExceptionName, hashCode
-
Constructor Details
-
NoRollbackRuleAttribute
Create a new instance of theNoRollbackRuleAttributeclass for the givenexceptionType.- Parameters:
exceptionType- exception type; must beThrowableor a subclass ofThrowable- Throws:
IllegalArgumentException- if the suppliedexceptionTypeis not aThrowabletype or isnull- See Also:
-
NoRollbackRuleAttribute
Create a new instance of theNoRollbackRuleAttributeclass for the suppliedexceptionPattern.- Parameters:
exceptionPattern- the exception name pattern; can also be a fully package-qualified class name- Throws:
IllegalArgumentException- if the suppliedexceptionPatternisnullor empty- See Also:
-
-
Method Details
-
toString
- Overrides:
toStringin classRollbackRuleAttribute
-