Class CacheException
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.
Inheritance
System.Object
CacheException
Namespace:
Assembly: Alachisoft.NCache.Runtime.dll
Syntax
public class CacheException : Exception
Examples
The following example demonstrates how to use this exception in your code.
try
{
...
}
catch(CacheException ex)
{
...
}
Name | Description |
---|---|
CacheException() | default constructor. |
CacheException(SerializationInfo, StreamingContext) | overloaded constructor, manual serialization. |
CacheException(String) | overloaded constructor, takes the reason as parameter. |
CacheException(String, Exception) | overloaded constructor. |