mscorlib(4.0.0.0) API with additions
|
Represents one or more errors that occur during application execution. More...
Public Member Functions | |
AggregateException () | |
Initializes a new instance of the T:System.AggregateException class with a system-supplied message that describes the error. More... | |
AggregateException (string message) | |
Initializes a new instance of the T:System.AggregateException class with a specified message that describes the error. More... | |
AggregateException (string message, Exception innerException) | |
Initializes a new instance of the T:System.AggregateException class with a specified error message and a reference to the inner exception that is the cause of this exception. More... | |
AggregateException (IEnumerable< Exception > innerExceptions) | |
Initializes a new instance of the T:System.AggregateException class with references to the inner exceptions that are the cause of this exception. More... | |
AggregateException (params Exception[] innerExceptions) | |
Initializes a new instance of the T:System.AggregateException class with references to the inner exceptions that are the cause of this exception. More... | |
AggregateException??? (string message, IEnumerable< Exception > innerExceptions) | |
Initializes a new instance of the T:System.AggregateException class with a specified error message and references to the inner exceptions that are the cause of this exception. More... | |
AggregateException (string message, params Exception[] innerExceptions) | |
Initializes a new instance of the T:System.AggregateException class with a specified error message and references to the inner exceptions that are the cause of this exception. More... | |
override void | GetObjectData (SerializationInfo info, StreamingContext context) |
Initializes a new instance of the T:System.AggregateException class with serialized data. More... | |
override Exception | GetBaseException () |
Returns the T:System.AggregateException that is the root cause of this exception. More... | |
void | Handle (Func< Exception, bool > predicate) |
Invokes a handler on each T:System.Exception contained by this T:System.AggregateException. More... | |
AggregateException | Flatten () |
Flattens an T:System.AggregateException instances into a single, new instance. More... | |
override string | ToString () |
Creates and returns a string representation of the current T:System.AggregateException. More... | |
![]() | |
Exception () | |
Initializes a new instance of the T:System.Exception class. More... | |
Exception (string message) | |
Initializes a new instance of the T:System.Exception class with a specified error message. More... | |
Exception (string message, Exception innerException) | |
Initializes a new instance of the T:System.Exception class with a specified error message and a reference to the inner exception that is the cause of this exception. More... | |
override string | ToString () |
Creates and returns a string representation of the current exception. More... | |
new Type | GetType () |
Gets the runtime type of the current instance. More... | |
![]() | |
new bool | Equals (object obj) |
Provides COM objects with version-independent access to the M:System.Object.Equals(System.Object) method. More... | |
new int | GetHashCode () |
Provides COM objects with version-independent access to the M:System.Object.GetHashCode method. More... | |
Protected Member Functions | |
AggregateException (SerializationInfo info, StreamingContext context) | |
Initializes a new instance of the T:System.AggregateException class with serialized data. More... | |
![]() | |
Exception (SerializationInfo info, StreamingContext context) | |
Initializes a new instance of the T:System.Exception class with serialized data. More... | |
Properties | |
ReadOnlyCollection< Exception > | InnerExceptions [get] |
Gets a read-only collection of the T:System.Exception instances that caused the current exception. More... | |
![]() | |
virtual string | Message [get] |
Gets a message that describes the current exception. More... | |
virtual IDictionary | Data [get] |
Gets a collection of key/value pairs that provide additional user-defined information about the exception. More... | |
Exception | InnerException [get] |
Gets the T:System.Exception instance that caused the current exception. More... | |
MethodBase | TargetSite [get] |
Gets the method that throws the current exception. More... | |
virtual string | StackTrace [get] |
Gets a string representation of the immediate frames on the call stack. More... | |
virtual string | HelpLink [get, set] |
Gets or sets a link to the help file associated with this exception. More... | |
virtual string | Source [get, set] |
Gets or sets the name of the application or the object that causes the error. More... | |
int | HResult [get, protected set] |
Gets or sets HRESULT, a coded numerical value that is assigned to a specific exception. More... | |
EventHandler< SafeSerializationEventArgs > | SerializeObjectState |
Occurs when an exception is serialized to create an exception state object that contains serialized data about the exception. More... | |
![]() | |
string | Message [get] |
Provides COM objects with version-independent access to the P:System.Exception.Message property. More... | |
string | StackTrace [get] |
Provides COM objects with version-independent access to the P:System.Exception.StackTrace property. More... | |
string | HelpLink [get, set] |
Provides COM objects with version-independent access to the P:System.Exception.HelpLink property. More... | |
string | Source [get, set] |
Provides COM objects with version-independent access to the P:System.Exception.Source property. More... | |
Exception | InnerException [get] |
Provides COM objects with version-independent access to the P:System.Exception.InnerException property. More... | |
MethodBase | TargetSite [get] |
Provides COM objects with version-independent access to the P:System.Exception.TargetSite property. More... | |
Represents one or more errors that occur during application execution.
Definition at line 15 of file AggregateException.cs.
System.AggregateException.AggregateException | ( | ) |
Initializes a new instance of the T:System.AggregateException class with a system-supplied message that describes the error.
Definition at line 35 of file AggregateException.cs.
System.AggregateException.AggregateException | ( | string | message | ) |
Initializes a new instance of the T:System.AggregateException class with a specified message that describes the error.
message | The message that describes the exception. The caller of this constructor is required to ensure that this string has been localized for the current system culture. |
Definition at line 44 of file AggregateException.cs.
System.AggregateException.AggregateException | ( | string | message, |
Exception | innerException | ||
) |
Initializes a new instance of the T:System.AggregateException class with a specified error message and a reference to the inner exception that is the cause of this exception.
message | The message that describes the exception. The caller of this constructor is required to ensure that this string has been localized for the current system culture. |
innerException | The exception that is the cause of the current exception. If the innerException parameter is not null , the current exception is raised in a catch block that handles the inner exception. |
T:System.ArgumentNullException | The innerException argument is null. |
Definition at line 55 of file AggregateException.cs.
System.AggregateException.AggregateException | ( | IEnumerable< Exception > | innerExceptions | ) |
Initializes a new instance of the T:System.AggregateException class with references to the inner exceptions that are the cause of this exception.
innerExceptions | The exceptions that are the cause of the current exception. |
T:System.ArgumentNullException | The innerExceptions argument is null. |
T:System.ArgumentException | An element of innerExceptions is null. |
Definition at line 73 of file AggregateException.cs.
System.AggregateException.AggregateException | ( | params Exception [] | innerExceptions | ) |
Initializes a new instance of the T:System.AggregateException class with references to the inner exceptions that are the cause of this exception.
innerExceptions | The exceptions that are the cause of the current exception. |
T:System.ArgumentNullException | The innerExceptions argument is null. |
T:System.ArgumentException | An element of innerExceptions is null. |
Definition at line 83 of file AggregateException.cs.
System.AggregateException.AggregateException | ( | string | message, |
params Exception [] | innerExceptions | ||
) |
Initializes a new instance of the T:System.AggregateException class with a specified error message and references to the inner exceptions that are the cause of this exception.
message | The error message that explains the reason for the exception. |
innerExceptions | The exceptions that are the cause of the current exception. |
T:System.ArgumentNullException | The innerExceptions argument is null. |
T:System.ArgumentException | An element of innerExceptions is null. |
Definition at line 105 of file AggregateException.cs.
|
protected |
Initializes a new instance of the T:System.AggregateException class with serialized data.
info | The object that holds the serialized object data. |
context | The contextual information about the source or destination. |
T:System.ArgumentNullException | The info argument is null. |
T:System.Runtime.Serialization.SerializationException | The exception could not be deserialized correctly. |
Definition at line 168 of file AggregateException.cs.
System.AggregateException.AggregateException??? | ( | string | message, |
IEnumerable< Exception > | innerExceptions | ||
) |
Initializes a new instance of the T:System.AggregateException class with a specified error message and references to the inner exceptions that are the cause of this exception.
message | The error message that explains the reason for the exception. |
innerExceptions | The exceptions that are the cause of the current exception. |
T:System.ArgumentNullException | The innerExceptions argument is null. |
T:System.ArgumentException | An element of innerExceptions is null. |
Definition at line 94 of file AggregateException.cs.
AggregateException System.AggregateException.Flatten | ( | ) |
Flattens an T:System.AggregateException instances into a single, new instance.
Definition at line 247 of file AggregateException.cs.
|
virtual |
Returns the T:System.AggregateException that is the root cause of this exception.
Reimplemented from System.Exception.
Definition at line 203 of file AggregateException.cs.
|
virtual |
Initializes a new instance of the T:System.AggregateException class with serialized data.
info | The object that holds the serialized object data. |
context | The contextual information about the source or destination. |
T:System.ArgumentNullException | The info argument is null. |
Reimplemented from System.Exception.
Definition at line 188 of file AggregateException.cs.
void System.AggregateException.Handle | ( | Func< Exception, bool > | predicate | ) |
Invokes a handler on each T:System.Exception contained by this T:System.AggregateException.
predicate | The predicate to execute for each exception. The predicate accepts as an argument the T:System.Exception to be processed and returns a Boolean to indicate whether the exception was handled. |
T:System.ArgumentNullException | The predicate argument is null. |
T:System.AggregateException | An exception contained by this T:System.AggregateException was not handled. |
Definition at line 220 of file AggregateException.cs.
override string System.AggregateException.ToString | ( | ) |
Creates and returns a string representation of the current T:System.AggregateException.
Implements System.Runtime.InteropServices._Exception.
Definition at line 279 of file AggregateException.cs.
|
get |
Gets a read-only collection of the T:System.Exception instances that caused the current exception.
Definition at line 23 of file AggregateException.cs.