edits
[iotcloud.git] / version2 / src / C / ServerException.cc
1
2 class ServerException extends Exception {
3
4     static final char TypeConnectTimeout = 1;
5     static final char TypeInputTimeout = 2;
6     static final char TypeIncorrectResponseCode = 3;
7     static final char TypeSalt = 4;
8     char type = -1;
9
10     ServerException(String message, char _type) {
11         super(message);
12         type = _type;
13     }
14
15     char getType() {
16         return type;
17     }
18 }