matador::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 (std::string msg) noexcept
 Constructs a unit_exception.
 
const char * what () const noexcept override
 

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 serializable.

Constructor & Destructor Documentation

◆ unit_exception()

matador::unit_exception::unit_exception ( std::string  msg)
inlineexplicitnoexcept

Constructs a unit_exception.

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

Parameters
msgMessage of the exception.

Member Function Documentation

◆ what()

const char * matador::unit_exception::what ( ) const
inlineoverridenoexcept

Returns the message of this exception.

Returns
The message of the exception.

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