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.TxnFactoryBuilder.setPropagationLevel(org.multiverse.api.PropagationLevel)
,
Serialized FormConstructor and Description |
---|
TxnNotAllowedException(String message)
Creates a new NoTransactionAllowedException with the provided message.
|
TxnNotAllowedException(String message,
Throwable cause)
Creates a new NoTransactionAllowedException with the provided message and cause.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public TxnNotAllowedException(String message)
message
- the message for the exception.Copyright © 2020. All rights reserved.