org.multiverse.api.exceptions
Class UncommittedReadConflict
java.lang.Object
java.lang.Throwable
java.lang.Error
org.multiverse.api.exceptions.ControlFlowError
org.multiverse.api.exceptions.ReadConflict
org.multiverse.api.exceptions.UncommittedReadConflict
- All Implemented Interfaces:
- Serializable
public class UncommittedReadConflict
- extends ReadConflict
An ReadConflict 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 |
INSTANCE
public static final UncommittedReadConflict INSTANCE
reuse
public static final boolean reuse
UncommittedReadConflict
public UncommittedReadConflict()
UncommittedReadConflict
public UncommittedReadConflict(String message)
UncommittedReadConflict
public UncommittedReadConflict(String message,
Throwable cause)
UncommittedReadConflict
public UncommittedReadConflict(Throwable cause)
createUncommittedReadConflict
public static UncommittedReadConflict createUncommittedReadConflict()
create
public static Exception create()
Copyright © 2008-2010 Multiverse. All Rights Reserved.