HSHGTest::TestFailure Class Reference

An exception class representing a test assertion failure. More...

#include <hshgtest.h>

List of all members.

Public Member Functions

 TestFailure (const char *message, const char *file, unsigned int line)
 Constructs an exception with the given details.
const std::string & GetMessage () const
 Returns a description of the test that failed.
const std::string & GetFile () const
 Returns the name of the source file where the failed test resides.
unsigned int GetLine () const
 Returns the source line number where the failed test resides.


Detailed Description

An exception class representing a test assertion failure.


Constructor & Destructor Documentation

HSHGTest::TestFailure::TestFailure ( const char *  message,
const char *  file,
unsigned int  line 
) [inline]

Constructs an exception with the given details.


Member Function Documentation

const std::string& HSHGTest::TestFailure::GetMessage (  )  const [inline]

Returns a description of the test that failed.

const std::string& HSHGTest::TestFailure::GetFile (  )  const [inline]

Returns the name of the source file where the failed test resides.

unsigned int HSHGTest::TestFailure::GetLine (  )  const [inline]

Returns the source line number where the failed test resides.


The documentation for this class was generated from the following file:
Generated on Wed Oct 31 00:18:54 2007 by  doxygen 1.5.2