ExceptionDispatchInfo.Throw 메서드

정의

오버로드

Name Description
Throw()

예외를 캡처할 때 저장된 상태를 복원한 후 현재 ExceptionDispatchInfo 개체가 나타내는 예외를 throw합니다.

Throw(Exception)

원본 스택 추적을 대체하지 않고 원본 Watson 정보를 유지하고 보강하여 원본 예외를 throw합니다.

Throw()

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

예외를 캡처할 때 저장된 상태를 복원한 후 현재 ExceptionDispatchInfo 개체가 나타내는 예외를 throw합니다.

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

설명

예외가 복원되면 다음 문자열이 스택 추적에 삽입되어 복원 지점을 "End of stack trace from the previous location where the exception was thrown"나타냅니다. 내부 예외 또는 마샬링된 예외가 스택 추적에 표시되는 방식과 비슷합니다.

적용 대상

Throw(Exception)

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

원본 스택 추적을 대체하지 않고 원본 Watson 정보를 유지하고 보강하여 원본 예외를 throw합니다.

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

매개 변수

source
Exception

상태를 캡처한 다음 다시 throw하는 예외입니다.

적용 대상