initial commit

This commit is contained in:
kazu
2017-07-15 15:52:05 +02:00
parent 087def3773
commit fb0ff1c076
16 changed files with 1857 additions and 1 deletions

26
exception.h Executable file
View File

@@ -0,0 +1,26 @@
#ifndef EXCEPTION_H
#define EXCEPTION_H
#include <exception>
#include <string>
class Exception : public std::exception {
private:
std::string msg;
public:
/** ctor */
Exception(const std::string& msg) : msg(msg) {
;
}
const char* what() const throw() {
return msg.c_str();
}
};
#endif // EXCEPTION_H