Class StreamAlreadyLockedException
StreamAlreadyLockedException is thrown if a stream is already locked.
Inheritance
System.Object
System.Exception
StreamAlreadyLockedException
Assembly: Alachisoft.NCache.Runtime.dll
Syntax
[Serializable]
public class StreamAlreadyLockedException : StreamException, _Exception, ISerializable
Remarks
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.
Constructors
StreamAlreadyLockedException()
Default constructor.
Declaration
public StreamAlreadyLockedException()
StreamAlreadyLockedException(Int32)
Default constructor with errorCode
Declaration
public StreamAlreadyLockedException(int errorCode)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | errorCode |
StreamAlreadyLockedException(Int32, String)
Default constructor with error code and message
Declaration
public StreamAlreadyLockedException(int errorCode, string reason = "Stream is already locked.")
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | errorCode | |
System.String | reason |
StreamAlreadyLockedException(SerializationInfo, StreamingContext)
Overloaded constructor, manual serialization.
Declaration
protected StreamAlreadyLockedException(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.Serialization.SerializationInfo | info | |
System.Runtime.Serialization.StreamingContext | context |