#ifndef RUNTIME_HPP
#define RUNTIME_HPP #include <exception> #include <string> namespace LambdaCalc { class RuntimeException: public std::exception { public: RuntimeException(const std::string& msg) : mmsgmsg) {}; virtual ~RuntimeException() throw() {}; virtual const char* what() const throw() { retumsg/span> msg.c_str(); } private: const std::string msg; }; } #endif |