OKlibrary  0.2.1.6
OKlib::TestSystem::messages::TestException Class Reference

The root of the exception class hierarchy, to be thrown in case of test failure. More...

#include <TestExceptions.hpp>

Inheritance diagram for OKlib::TestSystem::messages::TestException:
OKlib::Messages::MessagesPrePost OKlib::Messages::MessagesLines OKlib::Messages::MessagesBase

List of all members.

Public Member Functions

 TestException (const std::string &circumstances,::OKlib::Messages::MessagesPrePost *const additional_circumstances_=0)
 ~TestException () throw ()
TestExceptionadd (const ::OKlib::TestSystem::messages::ErrorDescription e)
void print (std::ostream &out, L< en_GB >, S< Basic >) const
void print (std::ostream &out, L< en_GB >, S< Full >) const

Detailed Description

The root of the exception class hierarchy, to be thrown in case of test failure.

A message class, derived from std::runtime_error. Contains a container of error descriptions, the first one being the actual error description, followed by descriptions for unwinding the call-stack. Should normally not be used directly, but is invoked by OKLIB_THROW and derived macros (like OKLIB_TEST_EQUAL).

Todo:
Provide different output-languages.

Definition at line 134 of file TestExceptions.hpp.


Constructor & Destructor Documentation

OKlib::TestSystem::messages::TestException::TestException ( const std::string &  circumstances,
::OKlib::Messages::MessagesPrePost *const  additional_circumstances_ = 0 
) [inline]

Definition at line 142 of file TestExceptions.hpp.

Definition at line 149 of file TestExceptions.hpp.


Member Function Documentation


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