org.multiverse.api.exceptions
Class IllegalCommuteException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.multiverse.api.exceptions.TxnExecutionException
                  extended by org.multiverse.api.exceptions.IllegalCommuteException
All Implemented Interfaces:
Serializable

public class IllegalCommuteException
extends TxnExecutionException

A TxnExecutionException thrown when Txn access is done while a commuting function is being evaluated.

The reason why Txn access is not allowed, is that once other reads/writes are done while executing the commuting behavior, you can have read/write inconsistencies. E.g. in Clojure the same commuting function can be executed more than during the execution of a transaction once on a reference, leading to different values every time executed (e.g. the value it already had inside the transaction, and the most recent committed value when the commuting operation is calculated during transaction commit.

Author:
Peter Veentjer.
See Also:
Serialized Form

Constructor Summary
IllegalCommuteException(String message)
          Creates a new IllegalCommuteException with the provided message.
IllegalCommuteException(String message, Throwable cause)
          Creates a new IllegalCommuteException with the provided message and 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

IllegalCommuteException

public IllegalCommuteException(String message)
Creates a new IllegalCommuteException with the provided message.

Parameters:
message - the message

IllegalCommuteException

public IllegalCommuteException(String message,
                               Throwable cause)
Creates a new IllegalCommuteException with the provided message and cause.

Parameters:
message - the message
cause - the cause.


Copyright © 2012. All Rights Reserved.