summaryrefslogtreecommitdiff
path: root/error.cpp
blob: 151f4bcb5f33c5684093b71bcdaf4c82be7fb94e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#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){}

FormError::FormError(const string &what_arg)
	:runtime_error(what_arg){}
FormError::FormError(const char *what_arg)
	:runtime_error(what_arg){}