public class TxnMandatoryException extends PropagationException
PropagationException
thrown when no Txn
is available while it is mandatory. A typical
cause of this exception is that the PropagationLevel.Mandatory
is used.Modifier and Type | Field and Description |
---|---|
private static long |
serialVersionUID |
Constructor and Description |
---|
TxnMandatoryException()
Creates a new TxnMandatoryException.
|
TxnMandatoryException(java.lang.Class clazz,
java.lang.String method)
Creates a new TxnMandatoryException
|
TxnMandatoryException(java.lang.String message)
Creates a new TxnMandatoryException with the provided message.
|
TxnMandatoryException(java.lang.String message,
java.lang.Throwable cause)
Creates a new TxnMandatoryException with the provided message.
|
private static final long serialVersionUID
public TxnMandatoryException()
public TxnMandatoryException(java.lang.String message)
message
- the message of the exception.public TxnMandatoryException(java.lang.Class clazz, java.lang.String method)
clazz
- the class of the method where the transaction was requiredmethod
- the name of the method where the transaction was required.public TxnMandatoryException(java.lang.String message, java.lang.Throwable cause)
message
- the message of the exception.cause
- the cause of the exception.