package iotcloud;
public class ServerException extends Exception {
-
- public ServerException(String message) {
+
+ public static final byte TypeConnectTimeout = 1;
+ public static final byte TypeInputTimeout = 2;
+ public static final byte TypeIncorrectResponseCode = 3;
+ public static final byte TypeSalt = 4;
+ private byte type = -1;
+
+ public ServerException(String message, byte _type) {
super(message);
+ type = _type;
+ }
+
+ public byte getType() {
+ return type;
}
}