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.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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