Unit test assertion error. More...
#include <error.hpp>
Public Member Functions | |
| AssertException (const std::string &msg) | |
| AssertException (const std::string &msg, const std::source_location &location) | |
| virtual | ~AssertException () |
| virtual const char * | what () const noexcept override |
| const std::source_location & | location () const noexcept |
Unit test assertion error.
Extends std::exception to provides assertion utility functions
| anch::ut::AssertException::AssertException | ( | const std::string & | msg | ) |
AssertException constructor
| msg | error message |
| anch::ut::AssertException::AssertException | ( | const std::string & | msg, |
| const std::source_location & | location ) |
AssertException constructor
| msg | error message |
| location | the failed assertion location |
|
virtual |
AssertException destructor
|
noexcept |
Failed assertion location getter
0 when location is unknown)
|
overridevirtualnoexcept |
Returns error message