org.multiverse.api.exceptions
Class LoadUncommittedException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.multiverse.api.exceptions.LoadException
                  extended by 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:

  1. an TransactionalObject has escaped and is used by another transaction, before the transaction creating that object has committed.
  2. 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

Constructor Summary
LoadUncommittedException()
           
LoadUncommittedException(java.lang.String message)
           
LoadUncommittedException(java.lang.String message, java.lang.Throwable cause)
           
LoadUncommittedException(java.lang.Throwable cause)
           
 
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

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.