IGLib  1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
NUnit.Framework.Internal.ExceptionHelper Class Reference

ExceptionHelper provides static methods for working with exceptions More...

Static Public Member Functions

static string BuildMessage (Exception exception)
 Builds up a message, using the Message field of the specified exception as well as any InnerExceptions. More...
 
static string BuildStackTrace (Exception exception)
 Builds up a message, using the Message field of the specified exception as well as any InnerExceptions. More...
 
static string GetStackTrace (Exception exception)
 Gets the stack trace of the exception. More...
 

Static Private Member Functions

static List< Exception > FlattenExceptionHierarchy (Exception exception)
 

Detailed Description

ExceptionHelper provides static methods for working with exceptions

Member Function Documentation

static string NUnit.Framework.Internal.ExceptionHelper.BuildMessage ( Exception  exception)
inlinestatic

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

Parameters
exceptionThe exception.
Returns
A combined message string.

References NUnit.Env.NewLine.

Referenced by NUnit.Framework.Internal.TestResult.RecordException(), NUnit.Framework.Internal.TestResult.RecordTearDownException(), and NUnit.Framework.Internal.TestParameters.TestParameters().

static string NUnit.Framework.Internal.ExceptionHelper.BuildStackTrace ( Exception  exception)
inlinestatic

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

Parameters
exceptionThe exception.
Returns
A combined stack trace.

References NUnit.Env.NewLine.

Referenced by NUnit.Framework.Internal.TestResult.RecordException(), NUnit.Framework.Internal.TestResult.RecordTearDownException(), and NUnit.Framework.Internal.TestParameters.TestParameters().

static string NUnit.Framework.Internal.ExceptionHelper.GetStackTrace ( Exception  exception)
inlinestatic

Gets the stack trace of the exception.

Parameters
exceptionThe exception.
Returns
A string representation of the stack trace.
static List<Exception> NUnit.Framework.Internal.ExceptionHelper.FlattenExceptionHierarchy ( Exception  exception)
inlinestaticprivate

The documentation for this class was generated from the following file: