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 Form| Constructor 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, toStringpublic 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 © 2025. All rights reserved.