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:
Serializable
A
PropagationException
thrown when a Txn
is found, but is not allowed.
A typical cause of this exception is that the PropagationLevel.Never
is used and
a transaction is available.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTxnNotAllowedException
(String message) Creates a new NoTransactionAllowedException with the provided message.TxnNotAllowedException
(String message, Throwable cause) Creates a new NoTransactionAllowedException with the provided message and cause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
-
Constructor Details
-
TxnNotAllowedException
Creates a new NoTransactionAllowedException with the provided message.- Parameters:
message
- the message for the exception.
-
TxnNotAllowedException
Creates a new NoTransactionAllowedException with the provided message and cause.- Parameters:
message
- the message of the exception.cause
- the cause of the Exception.
-