#include "error.h" using namespace std; NameError::NameError(const string &what_arg) :runtime_error("Name '"+what_arg+"' not found"){} NameError::NameError(const char *what_arg) :NameError(string(what_arg)){} TypeError::TypeError(const string &what_arg) :runtime_error(what_arg){} TypeError::TypeError(const char *what_arg) :runtime_error(what_arg){}