oos::unit_exception Class Reference

Unit exception class thrown on a unit test assert definition. More...

#include <unit_exception.hpp>

Inherits std::exception.

Public Member Functions

 unit_exception (const std::string &msg) throw ()
 Contructs a unit_exception. More...
 
virtual const char * what () const throw ()
 

Detailed Description

Unit exception class thrown on a unit test assert definition.

This unit_exception is thrown when an assert evaluates to false. This exception is caugt by the main test_suite object.

Constructor & Destructor Documentation

oos::unit_exception::unit_exception ( const std::string &  msg)
throw (
)

Contructs a unit_exception.

A object of type unit_exception with the given message is created.

Parameters
msgMessage of the exception.

Member Function Documentation

virtual const char* oos::unit_exception::what ( ) const
throw (
)
virtual

Returns the message of this exception.

Returns
The message of the exception.

The documentation for this class was generated from the following file:
  • unit/unit_exception.hpp