Tomographer  v5.3
Tomographer C++ Framework Documentation
Tomographer::Tools::EigenAssertException Class Reference

Exception that is thrown upon failed eigen_assert. More...

#include <tomographer/tools/eigen_assert_exception.h>

+ Inheritance diagram for Tomographer::Tools::EigenAssertException:
+ Collaboration diagram for Tomographer::Tools::EigenAssertException:

Public Member Functions

 EigenAssertException (const std::string &msg, const std::string &file, const std::size_t line)
 
virtual const char * what () const noexcept
 
- Public Member Functions inherited from std::exception
what (T... args)
 
~exception (T... args)
 
operator= (T... args)
 
exception (T... args)
 

Detailed Description

Exception that is thrown upon failed eigen_assert.

This is useful, e.g. for the test suites.

Note
Eigen's CommaInitializer has an assertion check in its destructor, which in C++11 are automatically noexcept. This causes warnings under g++6, and the code will call terminate() at runtime if the assertion fails.

Definition at line 61 of file eigen_assert_exception.h.


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