We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01adfd1 commit 00c5963Copy full SHA for 00c5963
src/Exception.h
@@ -0,0 +1,25 @@
1
+#ifndef _EXCEPTION_H
2
+#define _EXCEPTION_H
3
+
4
+#include <string>
5
6
+namespace chesspp
7
+{
8
+ class exception
9
+ {
10
+ protected:
11
+ exception &operator=(const exception &) throw();
12
13
+ public:
14
+ exception() throw() {}
15
+ exception(const std::string &_e) throw() : e(_e) {}
16
+ exception(const exception &) throw() {}
17
+ virtual ~exception() throw() {};
18
19
+ virtual std::string what() const throw() {return e;}
20
+ private:
21
+ std::string e;
22
+ };
23
+}
24
25
+#endif
0 commit comments