Start port
[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 = 3;
8     public static final byte TypeSalt = 4;
9     private byte type = -1;
10
11     public ServerException(String message, byte _type) {
12         super(message);
13         type = _type;
14     }
15
16     public byte getType() {
17         return type;
18     }
19 }