Show / Hide Table of Contents

    Class AggregateException

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

    Inheritance
    Object
    Exception
    AggregateException
    Inherited Members
    Exception.HResult
    Exception.InnerException
    Exception.StackTrace
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    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 Source

    AggregateException()

    Initializes a new instance of the AggregateException class.

    Declaration
    public AggregateException()
    | Improve this Doc View Source

    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.

    | Improve this Doc View Source

    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 innerException is null.

    | Improve this Doc View Source

    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 innerException is null.

    Properties

    | Improve this Doc View Source

    InnerExceptions

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

    Declaration
    public ArrayList InnerExceptions { get; }
    Property Value
    Type Description
    ArrayList
    | Improve this Doc View Source

    Message

    Gets a message that describes the exception.

    Declaration
    public override string Message { get; }
    Property Value
    Type Description
    String
    Overrides
    Exception.Message

    Methods

    | Improve this Doc View Source

    ToString()

    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.

    Overrides
    Exception.ToString()

    Extension Methods

    LogDispatcher.GetCurrentClassLogger(Object)
    • Improve this Doc
    • View Source
    Back to top Copyright © 2018 nanoFramework Contributors
    Generated by DocFX