|
|
TestFailure |
| Declared In: |
Exception that represents the failure of a unit test.
A TestFailure is an exception that represents the failure of a unit test and records the file and line number of the failure along with a message describing the failure. While this class does not descend from std::exception it may be thrown.
Gets the source file in which the failure occurred.
Gets the line in the source file on which the failure occurred.
Gets informative text describing the failure.
Constructor for the TestFailure exception.
Destructor for the TestFailure exception.
file |
Gets the source file in which the failure occurred.
public
const std::string& file() const throw();
The source file in which the failure occurred.
Gets the source file in which the failure occurred.
line |
Gets the line in the source file on which the failure occurred.
public
const unsigned int line() const throw();
The line in the source file on which the failure occurred.
Gets the line in the source file on which the failure occurred.
message |
Gets informative text describing the failure.
public
const std::string& message() const throw();
Informative text describing the failure.
Gets informative text describing the failure.
TestFailure |
Constructor for the TestFailure exception.
public
TestFailure( const std::string& file, const unsigned int line, const std::string& message) throw();
fileThe name of the source file in which the failure occurred.
lineThe number of the line in the source file on which the failure occurred.
messageInformative text describing the failure.
Constructor for the TestFailure exception.
~TestFailure |
Destructor for the TestFailure exception.
public
virtual ~TestFailure() throw();
Destructor for the TestFailure exception.
Last Updated: 2009-08-12