Package org.multiverse.api.exceptions
Class TxnNotAllowedException
- 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.TxnNotAllowedException
-
- All Implemented Interfaces:
java.io.Serializable
public class TxnNotAllowedException extends PropagationException
APropagationException
thrown when aTxn
is found, but is not allowed. A typical cause of this exception is that thePropagationLevel.Never
is used and a transaction is available.
-
-
Field Summary
Fields Modifier and Type Field Description private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description TxnNotAllowedException(java.lang.String message)
Creates a new NoTransactionAllowedException with the provided message.TxnNotAllowedException(java.lang.String message, java.lang.Throwable cause)
Creates a new NoTransactionAllowedException with the provided message and cause.
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
TxnNotAllowedException
public TxnNotAllowedException(java.lang.String message)
Creates a new NoTransactionAllowedException with the provided message.- Parameters:
message
- the message for the exception.
-
TxnNotAllowedException
public TxnNotAllowedException(java.lang.String message, java.lang.Throwable cause)
Creates a new NoTransactionAllowedException with the provided message and cause.- Parameters:
message
- the message of the exception.cause
- the cause of the Exception.
-
-