Class AggregateException
This exception is thrown when multiple exceptions occur from multiple nodes. It combines all the exceptions as an inner exception and throw it to the client application.
Namespace:
Assembly: Alachisoft.NCache.Runtime.dll
Syntax
public class AggregateException : CacheException
Examples
The following example demonstrates how to use this exception in your code.
try
{
...
}
catch(AggregateException ex)
{
...
}
Constructors
Name | Description |
---|---|
AggregateException(ArrayList) | It takes the exceptions that are the cause of the current exception as parameter. |
AggregateException(Exception[]) | It takes the exceptions that are the cause of the current exception as parameter. |
AggregateException(SerializationInfo, StreamingContext) | overloaded constructor, manual serialization. |
AggregateException(Int32, String, ArrayList) | overloaded constructor |
AggregateException(Int32, String, ArrayList, String) | overloaded constructor |
AggregateException(String, ArrayList) | Overloaded constructor, takes the reason as additional parameter. |
Properties
Name | Description |
---|---|
InnerExceptions | The exceptions that are the cause of the current exception. |
Message | The message of the exception. This message is the aggregate message from multiple exceptions. |