blob: ec13f1cba39d45122feef40a3dc8d8391f3f62ed (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#ifndef BAD_THING__H
#define BAD_THING__H
class bad_thing: public std::exception{
const char* msg;
virtual const char* what() const throw() {
return msg;
}
public:
bad_thing(const char* _msg)
: msg(_msg) {}
};
#endif
|