Class ConnectionException
Thrown whenever connection with cache server is lost while performing an operation on an outproc cache.
Inherited Members
Namespace:
Assembly: Alachisoft.NCache.Runtime.dll
Syntax
public class ConnectionException : OperationFailedException
Examples
The following example demonstrates how to use this exception in your code.
try
{
Cache cache = NCache.InitializeCache("sampleCache");
cache.Add("TestKey","sampleData");
}
catch(ConnectionException ex)
{
}
Name | Description |
---|---|
ConnectionException() | default constructor. |
ConnectionException(SerializationInfo, StreamingContext) | overloaded constructor, manual serialization. |
ConnectionException(System.Net.IPAddress, Int32) | overloaded constructor, takes the ipAddress and port as parameter. |
ConnectionException(String) | overloaded constructor, takes the reason as parameter. |
ConnectionException(String, System.Net.IPAddress, Int32) | overloaded constructor, takes the reason, ipAddress and port as parameter. |
Name | Description |
---|---|
IPAddress | IPAddress of broken connection |
Port | Port of broken connection |