ff8eb8de7ddefc0ce2ccf39b88727ac325357c95
[iotcloud.git] / version2 / src / C / Error.h
1 #ifndef ERROR_H
2 #define ERROR_H
3 class Error {
4 public:
5         Error(const char *msg) {}
6 };
7
8 class SocketTimeoutException {
9 public:
10 private:
11 };
12
13 class Exception {
14 public:
15         Exception(const char *msg) {}
16 };
17
18 #define ServerException_TypeInputTimeout 1
19 #define ServerException_TypeConnectTimeout 2
20 #define ServerException_TypeSalt 3
21
22 class ServerException {
23 public:
24         ServerException(const char *msg, char _type) : type(_type) {}
25         char getType();
26         char type;
27 };
28 #endif