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:
java.io.Serializable
public class TxnMandatoryException extends PropagationException
APropagationExceptionthrown when noTxnis available while it is mandatory. A typical cause of this exception is that thePropagationLevel.Mandatoryis used.
-
-
Field Summary
Fields Modifier and Type Field Description private static longserialVersionUID
-
Constructor Summary
Constructors Constructor Description TxnMandatoryException()Creates a new TxnMandatoryException.TxnMandatoryException(java.lang.Class clazz, java.lang.String method)Creates a new TxnMandatoryExceptionTxnMandatoryException(java.lang.String message)Creates a new TxnMandatoryException with the provided message.TxnMandatoryException(java.lang.String message, java.lang.Throwable cause)Creates a new TxnMandatoryException with the provided message.
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
TxnMandatoryException
public TxnMandatoryException()
Creates a new TxnMandatoryException.
-
TxnMandatoryException
public TxnMandatoryException(java.lang.String message)
Creates a new TxnMandatoryException with the provided message.- Parameters:
message- the message of the exception.
-
TxnMandatoryException
public TxnMandatoryException(java.lang.Class clazz, java.lang.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.
-
TxnMandatoryException
public TxnMandatoryException(java.lang.String message, java.lang.Throwable cause)Creates a new TxnMandatoryException with the provided message.- Parameters:
message- the message of the exception.cause- the cause of the exception.
-
-