org.multiverse.api.exceptions
Class LockedException

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

public class LockedException
extends AtomicOperationException

An AtomicOperationException thrown when an atomic operation was executed on a TxnObject while it was locked. E.g. when an atomicGet was done on a TxnRef that already has an exclusive lock or that a TxnRef.atomicSet while a readlock already was acquired.

Author:
Peter Veentjer.
See Also:
Serialized Form

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

LockedException

public LockedException()
Creates a new LockedException.


LockedException

public LockedException(String message)
Creates a new LockedException

Parameters:
message - the message

LockedException

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

Parameters:
message - the message
cause - the cause

LockedException

public LockedException(Throwable cause)
Creates a new LockedException

Parameters:
cause - the cause


Copyright © 2012. All Rights Reserved.