ExceptionExtensions.Unwind Method

Definition

Overloads

Unwind(Exception)

Unwinds the inner exceptions from a given exception.

Unwind(Exception, Type[])

Unwinds the inner exceptions from a given exception.

Unwind<TException>(Exception)

Unwinds the inner exceptions from a given exception.

Unwind(Exception)

Unwinds the inner exceptions from a given exception.

public static System.Collections.Generic.IEnumerable<Exception> Unwind (this Exception exception);
static member Unwind : Exception -> seq<Exception>
<Extension()>
Public Iterator Function Unwind (exception As Exception) As IEnumerable(Of Exception)

Parameters

exception
Exception

The exception to unwind.

Returns

The list of inner exceptions within the specified exception.

Applies to

Unwind(Exception, Type[])

Unwinds the inner exceptions from a given exception.

public static System.Collections.Generic.IEnumerable<Exception> Unwind (this Exception exception, params Type[] targetTypes);
static member Unwind : Exception * Type[] -> seq<Exception>
<Extension()>
Public Function Unwind (exception As Exception, ParamArray targetTypes As Type()) As IEnumerable(Of Exception)

Parameters

exception
Exception

The exception to unwind.

targetTypes
Type[]

The list of types that the inner exception should be an instance of.

Returns

The list of inner exceptions within the specified exception that are an instance of the supplied target types.

Applies to

Unwind<TException>(Exception)

Unwinds the inner exceptions from a given exception.

public static System.Collections.Generic.IEnumerable<TException> Unwind<TException> (this Exception exception);
static member Unwind : Exception -> seq<'Exception>
<Extension()>
Public Function Unwind(Of TException) (exception As Exception) As IEnumerable(Of TException)

Type Parameters

TException

The type of exception that the inner exception should be an instance of.

Parameters

exception
Exception

The exception to unwind.

Returns

IEnumerable<TException>

The list of inner exceptions within the specified exception that are an instance of the supplied target type.

Applies to