Class StreamNotFoundException
StreamNotFoundException is thrown if a CacheStream is not found in the cache.
Assembly: Alachisoft.NCache.Runtime.dll
Syntax
[Serializable]
public class StreamNotFoundException : StreamException, _Exception, ISerializable
Remarks
Possible reasoning for this exception can either be that the stream was not created or that it was removed from the cache.
Constructors
StreamNotFoundException()
Default constructor.
Declaration
public StreamNotFoundException()
StreamNotFoundException(Int32)
Default constructor.
Declaration
public StreamNotFoundException(int errorCode)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | errorCode |
StreamNotFoundException(Int32, String)
Default constructor.
Declaration
public StreamNotFoundException(int errorCode, string reason = "Stream not found in the cache.")
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | errorCode | |
System.String | reason |
StreamNotFoundException(SerializationInfo, StreamingContext)
Overloaded constructor, manual serialization.
Declaration
protected StreamNotFoundException(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.Serialization.SerializationInfo | info | |
System.Runtime.Serialization.StreamingContext | context |