Table of Contents

Class ExceptionHelper

Namespace
NUnit.Framework.Internal
Assembly
nunit.framework.dll

ExceptionHelper provides static methods for working with exceptions

public class ExceptionHelper
Inheritance
ExceptionHelper
Inherited Members

Constructors

ExceptionHelper()

public ExceptionHelper()

Methods

BuildMessage(Exception)

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

public static string BuildMessage(Exception exception)

Parameters

exception Exception

The exception.

Returns

string

A combined message string.

BuildStackTrace(Exception)

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

public static string BuildStackTrace(Exception exception)

Parameters

exception Exception

The exception.

Returns

string

A combined stack trace.

GetStackTrace(Exception)

Gets the stack trace of the exception.

public static string GetStackTrace(Exception exception)

Parameters

exception Exception

The exception.

Returns

string

A string representation of the stack trace.