#ifndef __MATH_EXCEPTION_HPP__ #define __MATH_EXCEPTION_HPP__ namespace math { /*! * \class math_error * \brief This class describes the math exception */ class math_error : public std::logic_error { public: /*! * \brief Constructor * \param what_arg : a string describing the math problem */ math_error (const std::string& what_arg) : logic_error( what_arg) {} }; }; #endif