61f1b6e0ad31d266e818bd71f3b5c809a0045e65
[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 Exception {
9 public:
10         Exception(const char *msg) {}
11 };
12
13 #define ServerException_TypeInputTimeout 1
14 #define ServerException_TypeConnectTimeout 2
15
16 class ServerException {
17 public:
18  ServerException(const char *msg, char _type) : type(_type) {}
19         char getType();
20         char type;
21 };
22 #endif