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
[Serializable]
public class AggregateException : CacheException, ISerializable
Examples
The following example demonstrates how to use this exception in your code.
try
{
...
}
catch(AggregateException ex)
{
...
}
Constructors
Name | Description |
---|---|
Aggregate |
It takes the exceptions that are the cause of the current exception as parameter. |
Aggregate |
It takes the exceptions that are the cause of the current exception as parameter. |
Aggregate |
overloaded constructor |
Aggregate |
overloaded constructor |
Aggregate |
overloaded constructor, manual serialization. |
Aggregate |
Overloaded constructor, takes the reason as additional parameter. |
Properties
Name | Description |
---|---|
Inner |
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. |