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
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.- Author:
- Peter Veentjer.
- See Also:
TxnFactoryBuilder.setPropagationLevel(org.multiverse.api.PropagationLevel)
, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TxnNotAllowedException(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
-
-
-
-
Constructor Detail
-
TxnNotAllowedException
public TxnNotAllowedException(String message)
Creates a new NoTransactionAllowedException with the provided message.- Parameters:
message
- the message for the exception.
-
-