org.multiverse.api.exceptions
Class LoadUncommittedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.multiverse.api.exceptions.LoadException
org.multiverse.api.exceptions.LoadUncommittedException
- All Implemented Interfaces:
- java.io.Serializable, RecoverableThrowable
public class LoadUncommittedException
- extends LoadException
- implements RecoverableThrowable
An IllegalStateException that is thrown when an object is loaded but has not been committed yet.
There are 2 why reasons this can happen:
-
an TransactionalObject has escaped and is used by another transaction, before the transaction creating
that object has committed.
-
an TransactionalObject is used, after the transaction in which the TransactionalObject is created is aborted.
In either case, the cause is a misuse of the STM, so a programming error and is not recoverable.
There is no reason for this exception to be reused is because this exception indicates a
programming failure, and you want to have good feedback when that happens.
- Author:
- Peter Veentjer.
- See Also:
- Serialized Form
| 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 |
LoadUncommittedException
public LoadUncommittedException()
LoadUncommittedException
public LoadUncommittedException(java.lang.String message)
LoadUncommittedException
public LoadUncommittedException(java.lang.String message,
java.lang.Throwable cause)
LoadUncommittedException
public LoadUncommittedException(java.lang.Throwable cause)
Copyright © 2008-2010 Multiverse. All Rights Reserved.