다음을 통해 공유


ExceptionDispatchInfo.Throw 메서드

정의

오버로드

Throw()

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

Throw(Exception)

원래 스택 추적을 바꾸지 않고 원래 Watson 정보를 유지하고 확대하여 소스 예외를 throw합니다.

Throw()

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

원래 스택 추적을 바꾸지 않고 원래 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하는 예외입니다.

적용 대상