It is the base class for all the exceptions that are thrown from NCache. So you can catch this exception for all the exceptions thrown from within the NCache.

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

Syntax

C#
[SerializableAttribute]
public class CacheException : Exception
Visual Basic
<SerializableAttribute> _
Public Class CacheException _
	Inherits Exception
Visual C++
[SerializableAttribute]
public ref class CacheException : public Exception

Examples

The following example demonstrates how to use this exception in your code.
CopyC#
try
{
    ...
}
catch(CacheException ex)
{
    ...
}

Inheritance Hierarchy

See Also