org.multiverse.api.exceptions
Class StmMismatchException

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.StmMismatchException
All Implemented Interfaces:
Serializable

public class StmMismatchException
extends TxnExecutionException

A TxnExecutionException thrown when a transaction encounters encounters a transactional object that belongs to a different Stm instance.

Normally this exception is not thrown because only a single Stm instance, stored in the GlobalStmInstance is used.

Author:
Peter Veentjer.
See Also:
GlobalStmInstance, Serialized Form

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

StmMismatchException

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

Parameters:
message - the message

StmMismatchException

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

Parameters:
message - the message
cause - the cause


Copyright © 2012. All Rights Reserved.