ExceptionExtensions.PrepareForRethrow(Exception) Method

Definition

Prepares a given exception for re-throwing.

public static Exception PrepareForRethrow (this Exception exception);
static member PrepareForRethrow : Exception -> Exception
<Extension()>
Public Function PrepareForRethrow (exception As Exception) As Exception

Parameters

exception
Exception

The exception to be re-thrown.

Returns

The exception containing the stacktrace from where it was generated.

Applies to