Block Chain Transactions, Commits multiple parts version
[iotcloud.git] / version2 / src / java / iotcloud / ServerException.java
index 6d35c43cc717d7e6c6207163051e0a21c6ccda5a..b09096c8ba07ee6339211e7165dbc3cf2f126dde 100644 (file)
@@ -1,8 +1,18 @@
 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 = 2;
+    private byte type = -1;
+
+    public ServerException(String message, byte _type) {
         super(message);
+        type = _type;
+    }
+
+    public byte getType() {
+        return type;
     }
 }