ExceptionExtensions.Unwind Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
The list of inner exceptions within the specified exception that are an instance of the supplied target type.
Applies to
Azure SDK for .NET
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for