class TestError : TestException

A test error represents an unexpected situation during execution of unit tests.

Test errors are generated when something fails in an unexpected way. That especially includes test fixture set-up and tear-down. Whenever the framework catches an exception that is not already a TestException, it generates a test error.



Public Members:
    TestError ( const string& message, const string& fileName = UNKNOWN_FILE, int line = UNKNOWN_LINE ) ;
    Initialise the error with a descriptive message.
    Relies on the constructor of TestException.

    TestError (const TestError& te) ;
    The copy-constructor
    Relies on the copy-constructor of TestException.

    virtual bool isError () const ;
    Test if this exception is an error.
    Returns always true.




The Scrunitizer C++ Unit Test Framework
by Bernd Linowski

[Scrunitizer]  [Overview]  [Cookbook]  [Download]  [Index]  [Linosphere]

Page generated: 1 Nov 2000
(C) by Bernd Linowski
scrunitizer@linosphere.de