dlr::test::TestException Class Reference

This exception is thrown to indicate a failed test. More...

#include <testException.h>

List of all members.

Public Member Functions

 TestException () throw ()
 Default constructor.
 TestException (const char *message) throw ()
 This constructor sets the internal "what()" message.
 TestException (const char *message, const char *fileName, int lineNumber) throw ()
 This constructor builds the internal "what()" message using detailed information about the failure.
 TestException (const char *message, const char *functionName, const char *fileName, int lineNumber) throw ()
 This constructor builds the internal "what()" message using detailed information about the failure.
 TestException (const TestException &source) throw ()
 The copy constructor deep copies its argument.
virtual ~TestException () throw ()
 Destructor.


Detailed Description

This exception is thrown to indicate a failed test.

It is mostly thrown by the DLR_TEST_ASSERT() macro, or it can be thrown explicitly by the test code.

Definition at line 34 of file testException.h.


Constructor & Destructor Documentation

dlr::test::TestException::TestException (  )  throw () [inline]

Default constructor.

Definition at line 39 of file testException.h.

dlr::test::TestException::TestException ( const char *  message  )  throw () [inline]

This constructor sets the internal "what()" message.

This message should generally provide information about the test failure.

Parameters:
message This argument specifies the text of the message.

Definition at line 49 of file testException.h.

dlr::test::TestException::TestException ( const char *  message,
const char *  fileName,
int  lineNumber 
) throw () [inline]

This constructor builds the internal "what()" message using detailed information about the failure.

Parameters:
message This argument specifies a description of the failure.
fileName This argument specifies the name of the file in which the failure occurred.
lineNumber This argument specifies the line number at which the failure occurred.

Definition at line 65 of file testException.h.

dlr::test::TestException::TestException ( const char *  message,
const char *  functionName,
const char *  fileName,
int  lineNumber 
) throw () [inline]

This constructor builds the internal "what()" message using detailed information about the failure.

Parameters:
message This argument specifies a description of the failure.
functionName This argument specifies the name of the function in which the failure occurred.
fileName This argument specifies the name of the file in which the failure occurred.
lineNumber This argument specifies the line number at which the failure occurred.

Definition at line 85 of file testException.h.

dlr::test::TestException::TestException ( const TestException source  )  throw () [inline]

The copy constructor deep copies its argument.

Parameters:
source This argument is the class instance to be copied.

Definition at line 96 of file testException.h.

virtual dlr::test::TestException::~TestException (  )  throw () [inline, virtual]

Destructor.

Definition at line 103 of file testException.h.


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

Generated on Wed Nov 25 01:02:07 2009 for dlrTest Utility Library by  doxygen 1.5.8