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.TxnFactoryBuilder.setPropagationLevel(org.multiverse.api.PropagationLevel)
,
Serialized FormConstructor and Description |
---|
TxnMandatoryException()
Creates a new TxnMandatoryException.
|
TxnMandatoryException(Class clazz,
String method)
Creates a new TxnMandatoryException
|
TxnMandatoryException(String message)
Creates a new TxnMandatoryException with the provided message.
|
TxnMandatoryException(String message,
Throwable cause)
Creates a new TxnMandatoryException with the provided message.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public TxnMandatoryException()
public TxnMandatoryException(String message)
message
- the message of the exception.public TxnMandatoryException(Class clazz, String method)
clazz
- the class of the method where the transaction was requiredmethod
- the name of the method where the transaction was required.Copyright © 2020. All rights reserved.