public class TxnNotAllowedException extends PropagationException
PropagationException thrown when a Txn is found, but is not allowed.
A typical cause of this exception is that the PropagationLevel.Never is used and
a transaction is available.| Constructor and Description |
|---|
TxnNotAllowedException(java.lang.String message)
Creates a new NoTransactionAllowedException with the provided message.
|
TxnNotAllowedException(java.lang.String message,
java.lang.Throwable cause)
Creates a new NoTransactionAllowedException with the provided message and cause.
|
public TxnNotAllowedException(java.lang.String message)
message - the message for the exception.public TxnNotAllowedException(java.lang.String message,
java.lang.Throwable cause)
message - the message of the exception.cause - the cause of the Exception.