Skip to content

Commit 00c5963

Browse files
committed
Removed several files, lots of redundancy, and still need to add event loop
1 parent 01adfd1 commit 00c5963

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

src/Exception.h

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)