• Webinars
  • Docs
  • Download
  • Blogs
  • Contact Us
Try Free
Show / Hide Table of Contents

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.

Inheritance
System.Object
System.Exception
CacheException
AggregateException
Inherited Members
CacheException.ErrorCode
CacheException.StackTrace
CacheException.ToString()
Assembly: Alachisoft.NCache.Runtime.dll
Syntax
[Serializable]
public class AggregateException : CacheException, ISerializable, _Exception
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(Int32, String, ArrayList)

Overloaded constructor

AggregateException(Int32, String, ArrayList, String)

Overloaded constructor

AggregateException(SerializationInfo, StreamingContext)

Overloaded constructor, manual serialization.

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.

Back to top Copyright © 2017 Alachisoft