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