Thrown whenever connection with cache server is lost while performing an operation on an outproc cache.

Namespace: Alachisoft.NCache.Runtime.Exceptions
Assembly: Alachisoft.NCache.Runtime (in Alachisoft.NCache.Runtime.dll) Version: 4.3.0.0 (4.3.0.0)

Syntax

C#
[SerializableAttribute]
public class ConnectionException : OperationFailedException
Visual Basic
<SerializableAttribute>
Public Class ConnectionException
	Inherits OperationFailedException
Visual C++
[SerializableAttribute]
public ref class ConnectionException : public OperationFailedException

Examples

The following example demonstrates how to use this exception in your code.
 Copy imageCopy
try
{
    Cache cache = NCache.InitializeCache("sampleCache");
    cache.Add("TestKey","sampleData");
}
catch(ConnectionException ex)
{

}

Inheritance Hierarchy

See Also