C# 클래스 Testeroids.ExceptionEnlightenment

The default exception enlightenment, which will use ExceptionDispatchInfo if possible, falling back on Exception.PrepForRemoting, with a final fallback on P:System.Exception.Data.
NOTE: Copied from Nito.AsyncEx in order to avoid unnecessary dependencies. This will no longer be necessary once we move to .NET Framework 4.5.
파일 보기 프로젝트 열기: Testeroids/Testeroids 1 사용 예제들

공개 메소드들

메소드 설명
PrepareForRethrow ( Exception exception ) : Exception

비공개 메소드들

메소드 설명
ExceptionEnlightenment ( ) : System

Examines the current runtime and initializes the static delegates appropriately.

TryAddStackTrace ( Exception exception ) : void

Attempts to add the original stack trace to the P:System.Exception.Data collection.

TryGetMethod ( Type type, string name, BindingFlags flags ) : MethodInfo

Attempts to look up a method for a type, handling vexing exceptions.

메소드 상세

PrepareForRethrow() 공개 정적인 메소드

public static PrepareForRethrow ( Exception exception ) : Exception
exception System.Exception
리턴 System.Exception