blob: 2084319d1b6ab2cd7183b1f128de017ff2a85f00 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#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){}
|