Thrown whenever connection with cache server is lost while performing an operation on an outproc cache.
Namespace: Alachisoft.NCache.Runtime.ExceptionsAssembly: Alachisoft.NCache.Runtime (in Alachisoft.NCache.Runtime.dll) Version: 4.1.0.0 (4.1.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.
CopyC#
try { Cache cache = NCache.InitializeCache("sampleCache"); cache.Add("TestKey","sampleData"); } catch(ConnectionException ex) { }
Inheritance Hierarchy
System..::..Object
System..::..Exception
Alachisoft.NCache.Runtime.Exceptions..::..CacheException
Alachisoft.NCache.Runtime.Exceptions..::..OperationFailedException
Alachisoft.NCache.Runtime.Exceptions..::..ConnectionException
System..::..Exception
Alachisoft.NCache.Runtime.Exceptions..::..CacheException
Alachisoft.NCache.Runtime.Exceptions..::..OperationFailedException
Alachisoft.NCache.Runtime.Exceptions..::..ConnectionException