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 cache.
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)
{
...
}
Constructors
Name | Description |
---|---|
CacheException() | Default constructor. |
CacheException(SerializationInfo, StreamingContext) | Overloaded constructor, manual serialization. |
CacheException(Int32) | overloaded constructor |
CacheException(Int32, Exception) | overloaded constructor |
CacheException(Int32, String) | Overloaded Constructor |
CacheException(Int32, String, Exception) | overloaded constructor |
CacheException(Int32, String, String) | overloaded exception |
CacheException(String) | Overloaded constructor, takes the reason as parameter. |
CacheException(String, Exception) | Overloaded constructor. |
Properties
Name | Description |
---|---|
ErrorCode | Property for setting ErrorCode |
StackTrace | Property for setting stack trace |
Methods
Name | Description |
---|---|
ToString() | Represents the exception in string form with type and stack trace |