Changes
[iotcloud.git] / version2 / src / java / iotcloud / ServerException.java
index 6d35c43cc717d7e6c6207163051e0a21c6ccda5a..1705c70375fa5a4b25117fc10d492c683ec42518 100644 (file)
@@ -1,8 +1,19 @@
 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;
     }
 }