com.alachisoft.jvcache.runtime.exceptions
Class StreamAlreadyLockedException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.alachisoft.jvcache.runtime.exceptions.CacheException
              extended by com.alachisoft.jvcache.runtime.exceptions.StreamAlreadyLockedException
All Implemented Interfaces:
java.io.Serializable

public class StreamAlreadyLockedException
extends CacheException

StreamAlreadLockedException is thrown if stream is already locked. CacheStream opened for reading or writing mode acquires read or writer lock. If stream is already opened with reader/writer lock then this exception is thrown.

See Also:
Serialized Form

Constructor Summary
StreamAlreadyLockedException()
          Constructs an StreamAlreadyLockedException with null as its error detail message.
StreamAlreadyLockedException(java.lang.String s)
          Constructs an StreamAlreadyLockedException with the specified detail 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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StreamAlreadyLockedException

public StreamAlreadyLockedException()
Constructs an StreamAlreadyLockedException with null as its error detail message.


StreamAlreadyLockedException

public StreamAlreadyLockedException(java.lang.String s)
Constructs an StreamAlreadyLockedException with the specified detail message. The error message string s can later be retrieved by the Throwable.getMessage() method of class java.lang.Throwable.

Parameters:
s - the detail message.