public class NoRollbackRuleAttribute extends RollbackRuleAttribute
RollbackRuleAttribute
that has the opposite behavior
to the RollbackRuleAttribute
superclass.ROLLBACK_ON_RUNTIME_EXCEPTIONS
Constructor and Description |
---|
NoRollbackRuleAttribute(Class<?> exceptionType)
Create a new instance of the
NoRollbackRuleAttribute class
for the given exceptionType . |
NoRollbackRuleAttribute(String exceptionPattern)
Create a new instance of the
NoRollbackRuleAttribute class
for the supplied exceptionPattern . |
Modifier and Type | Method and Description |
---|---|
String |
toString() |
equals, getDepth, getExceptionName, hashCode
public NoRollbackRuleAttribute(Class<?> exceptionType)
NoRollbackRuleAttribute
class
for the given exceptionType
.exceptionType
- exception type; must be Throwable
or a subclass
of Throwable
IllegalArgumentException
- if the supplied exceptionType
is
not a Throwable
type or is null
RollbackRuleAttribute(Class)
public NoRollbackRuleAttribute(String exceptionPattern)
NoRollbackRuleAttribute
class
for the supplied exceptionPattern
.exceptionPattern
- the exception name pattern; can also be a fully
package-qualified class nameIllegalArgumentException
- if the supplied exceptionPattern
is null
or emptyRollbackRuleAttribute(String)
public String toString()
toString
in class RollbackRuleAttribute