Class AggregateException
Initializes a new instance of the AggregateException class with a system-supplied message that describes the error.
Inherited Members
Namespace: System
Assembly: nanoFramework.DependencyInjection.dll
Syntax
[Serializable]
public class AggregateException : Exception
Remarks
AggregateException is used to consolidate multiple failures into a single, throwable exception object.
Constructors
| Improve this Doc View SourceAggregateException()
Initializes a new instance of the AggregateException class.
Declaration
public AggregateException()
AggregateException(String)
Initializes a new instance of the AggregateException class with a specified error message.
Declaration
public AggregateException(string message)
Parameters
Type | Name | Description |
---|---|---|
String | message | 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.
Declaration
public AggregateException(string message, ArrayList innerException)
Parameters
Type | Name | Description |
---|---|---|
String | message | The error message that explains the reason for the exception. |
ArrayList | innerException | An array list of Exception object exceptions that is the cause of the current exception. |
Exceptions
Type | Condition |
---|---|
ArgumentException | An element of innerExceptions not of Exception type. |
ArgumentNullException | One of the |
AggregateException(String, Exception[])
Initializes a new instance of the AggregateException class with a specified error message.
Declaration
public AggregateException(string message, params Exception[] innerException)
Parameters
Type | Name | Description |
---|---|---|
String | message | The error message that explains the reason for the exception. |
Exception[] | innerException | The exceptions that are the cause of the current exception. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | One of the |
Properties
| Improve this Doc View SourceInnerExceptions
Gets an ArrayList of the exception instances that caused the current exception.
Declaration
public ArrayList InnerExceptions { get; }
Property Value
Type | Description |
---|---|
ArrayList |
Message
Gets a message that describes the exception.
Declaration
public override string Message { get; }
Property Value
Type | Description |
---|---|
String |
Overrides
Methods
| Improve this Doc View SourceToString()
Creates and returns a string representation of the current AggregateException.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String | A string representation of the current exception. |