Added Android App
[iotcloud.git] / version2 / src / Control / app / src / main / java / iotcloud / ServerException.java
diff --git a/version2/src/Control/app/src/main/java/iotcloud/ServerException.java b/version2/src/Control/app/src/main/java/iotcloud/ServerException.java
new file mode 100644 (file)
index 0000000..1705c70
--- /dev/null
@@ -0,0 +1,19 @@
+package iotcloud;
+
+public class ServerException extends Exception {
+
+    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;
+    }
+}