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 org.springframework.transaction.interceptor.RollbackRuleAttribute
ROLLBACK_ON_ALL_EXCEPTIONS, ROLLBACK_ON_RUNTIME_EXCEPTIONS
-
Constructor Summary
ConstructorDescriptionNoRollbackRuleAttribute
(Class<?> exceptionType) Create a new instance of theNoRollbackRuleAttribute
class for the givenexceptionType
.NoRollbackRuleAttribute
(String exceptionPattern) Create a new instance of theNoRollbackRuleAttribute
class for the suppliedexceptionPattern
. -
Method Summary
Methods inherited from class org.springframework.transaction.interceptor.RollbackRuleAttribute
equals, getDepth, getExceptionName, hashCode
-
Constructor Details
-
NoRollbackRuleAttribute
Create a new instance of theNoRollbackRuleAttribute
class for the givenexceptionType
.- Parameters:
exceptionType
- exception type; must beThrowable
or a subclass ofThrowable
- Throws:
IllegalArgumentException
- if the suppliedexceptionType
is not aThrowable
type or isnull
- See Also:
-
NoRollbackRuleAttribute
Create a new instance of theNoRollbackRuleAttribute
class for the suppliedexceptionPattern
.- Parameters:
exceptionPattern
- the exception name pattern; can also be a fully package-qualified class name- Throws:
IllegalArgumentException
- if the suppliedexceptionPattern
isnull
or empty- See Also:
-
-
Method Details
-
toString
- Overrides:
toString
in classRollbackRuleAttribute
-