Package org.multiverse.api.exceptions
Class IllegalTxnStateException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.multiverse.api.exceptions.TxnExecutionException
-
- org.multiverse.api.exceptions.IllegalTxnStateException
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AbortOnlyException
,DeadTxnException
,PreparedTxnException
,ReadonlyException
public class IllegalTxnStateException extends TxnExecutionException
ATxnExecutionException
thrown when an operation is executed on aTxn
when it is not in a valid state for that operation.- Author:
- Peter Veentjer
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description IllegalTxnStateException()
Creates a new IllegalTxnStateException.IllegalTxnStateException(String message)
Creates a new IllegalTxnStateException with the provided message.IllegalTxnStateException(String message, Throwable cause)
Creates a new IllegalTxnStateException 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
-
IllegalTxnStateException
public IllegalTxnStateException()
Creates a new IllegalTxnStateException.
-
IllegalTxnStateException
public IllegalTxnStateException(String message)
Creates a new IllegalTxnStateException with the provided message.- Parameters:
message
- the message of the exception.
-
-