Package org.multiverse.api.exceptions
Class TxnMandatoryException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.multiverse.api.exceptions.TxnExecutionException
-
- org.multiverse.api.exceptions.PropagationException
-
- org.multiverse.api.exceptions.TxnMandatoryException
-
- All Implemented Interfaces:
Serializable
public class TxnMandatoryException extends PropagationException
APropagationException
thrown when noTxn
is available while it is mandatory. A typical cause of this exception is that thePropagationLevel.Mandatory
is used.
-
-
Constructor Summary
Constructors Constructor Description TxnMandatoryException()
Creates a new TxnMandatoryException.TxnMandatoryException(Class clazz, String method)
Creates a new TxnMandatoryExceptionTxnMandatoryException(String message)
Creates a new TxnMandatoryException with the provided message.TxnMandatoryException(String message, Throwable cause)
Creates a new TxnMandatoryException with the provided message.
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
TxnMandatoryException
public TxnMandatoryException()
Creates a new TxnMandatoryException.
-
TxnMandatoryException
public TxnMandatoryException(String message)
Creates a new TxnMandatoryException with the provided message.- Parameters:
message
- the message of the exception.
-
TxnMandatoryException
public TxnMandatoryException(Class clazz, String method)
Creates a new TxnMandatoryException- Parameters:
clazz
- the class of the method where the transaction was requiredmethod
- the name of the method where the transaction was required.
-
-