1
      2
      3
      4
      5
      6
      7
      8
      9
     10
     11
     12
     13
     14
     15
     16
     17
     18
     19
     20
     21
     22
#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