ExceptionDispatchInfo.Throw Method

Definition

Overloads

Throw()

Throws the exception that's represented by the current ExceptionDispatchInfo object, after restoring the state that was saved when the exception was captured.

Throw(Exception)

Throws the source exception, maintaining the original Watson information and augmenting rather than replacing the original stack trace.

Throw()

Source:
ExceptionDispatchInfo.cs
Source:
ExceptionDispatchInfo.cs
Source:
ExceptionDispatchInfo.cs

Throws the exception that's represented by the current ExceptionDispatchInfo object, after restoring the state that was saved when the exception was captured.

public:
 void Throw();
public void Throw ();
member this.Throw : unit -> unit
Public Sub Throw ()

Remarks

When the exception is restored, the following string is inserted in the stack trace to indicate the restore point: "End of stack trace from the previous location where the exception was thrown". This is similar to the way inner exceptions or marshaled exceptions are indicated in stack traces.

Applies to

Throw(Exception)

Source:
ExceptionDispatchInfo.cs
Source:
ExceptionDispatchInfo.cs
Source:
ExceptionDispatchInfo.cs

Throws the source exception, maintaining the original Watson information and augmenting rather than replacing the original stack trace.

public:
 static void Throw(Exception ^ source);
public static void Throw (Exception source);
static member Throw : Exception -> unit
Public Shared Sub Throw (source As Exception)

Parameters

source
Exception

The exception whose state is captured, then rethrown.

Applies to