org.multiverse.api.exceptions
Class ReadonlyException

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.IllegalTxnStateException
                      extended by org.multiverse.api.exceptions.ReadonlyException
All Implemented Interfaces:
Serializable

public class ReadonlyException
extends IllegalTxnStateException

An IllegalTxnStateException thrown when a write action is executed using a readonly Txn.

Author:
Peter Veentjer.
See Also:
TxnFactoryBuilder.setReadonly(boolean), Serialized Form

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

ReadonlyException

public ReadonlyException(String message)
Creates a new ReadonlyException.

Parameters:
message - the message of the exception.

ReadonlyException

public ReadonlyException(String message,
                         Throwable cause)
Creates a new ReadonlyException.

Parameters:
message - the message of the exception.
cause - the cause of the exception.


Copyright © 2012. All Rights Reserved.