|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.multiverse.api.exceptions.TxnExecutionException
org.multiverse.api.exceptions.PropagationException
org.multiverse.api.exceptions.TxnMandatoryException
public class TxnMandatoryException
A PropagationException thrown when no Txn is available while it is mandatory. A typical
cause of this exception is that the PropagationLevel.Mandatory is used.
TxnFactoryBuilder.setPropagationLevel(org.multiverse.api.PropagationLevel),
Serialized Form| Constructor Summary | |
|---|---|
TxnMandatoryException()
Creates a new TxnMandatoryException. |
|
TxnMandatoryException(Class clazz,
String method)
Creates a new TxnMandatoryException |
|
TxnMandatoryException(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 |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TxnMandatoryException()
public TxnMandatoryException(String message)
message - the message of the exception.
public TxnMandatoryException(Class clazz,
String method)
clazz - the class of the method where the transaction was requiredmethod - the name of the method where the transaction was required.
public TxnMandatoryException(String message,
Throwable cause)
message - the message of the exception.cause - the cause of the exception.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||