Class ExceptionExtensions
Extensions for AggregateException
Inherited Members
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 |
---|---|---|
Exception | exception | The exception. |
Returns
Type | Description |
---|---|
Exception | The innermost exception. |
GetRealException(AggregateException)
Gets the real exception of an AggregateException instance.
Declaration
public static Exception GetRealException(this AggregateException aggregateException)
Parameters
Type | Name | Description |
---|---|---|
AggregateException | aggregateException | The aggregate exception. |
Returns
Type | Description |
---|---|
Exception | The first non-AggregateException in the hierarchy of aggregated exceptions. |