Class ExceptionExtensions
Extensions for System.AggregateException
Inheritance
System.Object
ExceptionExtensions
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: DocuWare.Services.Http.Client
Assembly: DocuWare.RestClient.dll
Syntax
public static class ExceptionExtensions
Methods
GetInnerMostException(Exception)
Gets the inner most exception.
Declaration
public static Exception GetInnerMostException(this Exception exception)
Parameters
Type | Name | Description |
---|---|---|
System.Exception | exception | The exception. |
Returns
Type | Description |
---|---|
System.Exception | The innermost exception. |
GetRealException(AggregateException)
Gets the real exception of an System.AggregateException instance.
Declaration
public static Exception GetRealException(this AggregateException aggregateException)
Parameters
Type | Name | Description |
---|---|---|
System.AggregateException | aggregateException | The aggregate exception. |
Returns
Type | Description |
---|---|
System.Exception | The first non-System.AggregateException in the hierarchy of aggregated exceptions. |