Table of Contents

Class AggregateException

Namespace
System
Assembly
nanoFramework.DependencyInjection.dll

Initializes a new instance of the AggregateException class with a system-supplied message that describes the error.

public class AggregateException : Exception
Inheritance
AggregateException
Inherited Members
Extension Methods

Remarks

AggregateException is used to consolidate multiple failures into a single, throwable exception object.

Constructors

AggregateException()

Initializes a new instance of the AggregateException class.

public AggregateException()

AggregateException(string)

Initializes a new instance of the AggregateException class with a specified error message.

public AggregateException(string message)

Parameters

message string

The error message that explains the reason for the exception.

AggregateException(string, ArrayList)

Initializes a new instance of the AggregateException class with a specified error message.

public AggregateException(string message, ArrayList innerException)

Parameters

message string

The error message that explains the reason for the exception.

innerException ArrayList

An array list of Exception object exceptions that is the cause of the current exception.

Exceptions

ArgumentException

An element of innerExceptions not of Exception type.

ArgumentNullException

One of the innerException is null.

AggregateException(string, params Exception[])

Initializes a new instance of the AggregateException class with a specified error message.

public AggregateException(string message, params Exception[] innerException)

Parameters

message string

The error message that explains the reason for the exception.

innerException Exception[]

The exceptions that are the cause of the current exception.

Exceptions

ArgumentNullException

One of the innerException is null.

Properties

InnerExceptions

Gets an ArrayList of the exception instances that caused the current exception.

public ArrayList InnerExceptions { get; }

Property Value

ArrayList

Message

Gets a message that describes the exception.

public override string Message { get; }

Property Value

string

Methods

ToString()

Creates and returns a string representation of the current AggregateException.

public override string ToString()

Returns

string

A string representation of the current exception.