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