C# Класс NUnit.Framework.Internal.ExceptionHelper

ExceptionHelper provides static methods for working with exceptions
Показать файл Открыть проект

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

Метод Описание
BuildFriendlyMessage ( Exception exception ) : string

Builds up a message, using the Message field of the specified exception as well as any InnerExceptions. Excludes exception names, creating more readable message

BuildMessage ( Exception exception ) : string

Builds up a message, using the Message field of the specified exception as well as any InnerExceptions.

BuildStackTrace ( Exception exception ) : string

Builds up a message, using the Message field of the specified exception as well as any InnerExceptions.

GetStackTrace ( Exception exception ) : string

Gets the stack trace of the exception.

Rethrow ( Exception exception ) : void

Rethrows an exception, preserving its stack trace

Приватные методы

Метод Описание
BuildMessage ( Exception exception, bool isFriendlyMessage ) : string
ExceptionHelper ( ) : System
FlattenExceptionHierarchy ( Exception exception ) : List
WriteException ( StringBuilder sb, Exception inner, bool isFriendlyMessage ) : void

Описание методов

BuildFriendlyMessage() публичный статический Метод

Builds up a message, using the Message field of the specified exception as well as any InnerExceptions. Excludes exception names, creating more readable message
public static BuildFriendlyMessage ( Exception exception ) : string
exception System.Exception The exception.
Результат string

BuildMessage() публичный статический Метод

Builds up a message, using the Message field of the specified exception as well as any InnerExceptions.
public static BuildMessage ( Exception exception ) : string
exception System.Exception The exception.
Результат string

BuildStackTrace() публичный статический Метод

Builds up a message, using the Message field of the specified exception as well as any InnerExceptions.
public static BuildStackTrace ( Exception exception ) : string
exception System.Exception The exception.
Результат string

GetStackTrace() публичный статический Метод

Gets the stack trace of the exception.
public static GetStackTrace ( Exception exception ) : string
exception System.Exception The exception.
Результат string

Rethrow() публичный статический Метод

Rethrows an exception, preserving its stack trace
public static Rethrow ( Exception exception ) : void
exception System.Exception The exception to rethrow
Результат void