Class StreamAlreadyLockedException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.alachisoft.ncache.runtime.exceptions.CacheException
-
- com.alachisoft.ncache.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
Constructors Constructor Description StreamAlreadyLockedException()Constructs anStreamAlreadyLockedExceptionwithnullas its error detail message.StreamAlreadyLockedException(int expCode, java.lang.String expMessage, java.lang.String stackTrace)StreamAlreadyLockedException(java.lang.String s)Constructs anStreamAlreadyLockedExceptionwith the specified detail message.
-
Method Summary
-
Methods inherited from class com.alachisoft.ncache.runtime.exceptions.CacheException
getErrorCode, printStackTrace, setErrorCode
-
-
-
-
Constructor Detail
-
StreamAlreadyLockedException
public StreamAlreadyLockedException()
Constructs anStreamAlreadyLockedExceptionwithnullas its error detail message.
-
StreamAlreadyLockedException
public StreamAlreadyLockedException(java.lang.String s)
Constructs anStreamAlreadyLockedExceptionwith the specified detail message. The error message stringscan later be retrieved by themethod of classThrowable.getMessage()java.lang.Throwable.- Parameters:
s- the detail message.
-
StreamAlreadyLockedException
public StreamAlreadyLockedException(int expCode, java.lang.String expMessage, java.lang.String stackTrace)
-
-