C# 클래스 NUnit.Framework.Internal.ExceptionHelper

ExceptionHelper provides static methods for working with exceptions
파일 보기 프로젝트 열기: nunit/nunit

공개 메소드들

메소드 설명
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