summaryrefslogtreecommitdiff
path: root/java/src/com
diff options
context:
space:
mode:
authorGrant Limberg <[email protected]>2020-05-18 10:31:17 -0700
committerGrant Limberg <[email protected]>2020-05-18 10:31:17 -0700
commit844725237dce8a5a26a7b8792b9c37860ed23fe5 (patch)
tree35fb95fccad563ec51d2812a984b710244eb1b21 /java/src/com
parentf8ba1962e634541f43df0aa7e55a56eb8fde65cd (diff)
Add new ZT_ result codes that were added
Diffstat (limited to 'java/src/com')
-rw-r--r--java/src/com/zerotier/sdk/ResultCode.java15
1 files changed, 10 insertions, 5 deletions
diff --git a/java/src/com/zerotier/sdk/ResultCode.java b/java/src/com/zerotier/sdk/ResultCode.java
index 5da82b31..66f57561 100644
--- a/java/src/com/zerotier/sdk/ResultCode.java
+++ b/java/src/com/zerotier/sdk/ResultCode.java
@@ -45,30 +45,35 @@ public enum ResultCode {
/**
* Ran out of memory
*/
- RESULT_FATAL_ERROR_OUT_OF_MEMORY(1),
+ RESULT_FATAL_ERROR_OUT_OF_MEMORY(100),
/**
* Data store is not writable or has failed
*/
- RESULT_FATAL_ERROR_DATA_STORE_FAILED(2),
+ RESULT_FATAL_ERROR_DATA_STORE_FAILED(101),
/**
* Internal error (e.g. unexpected exception indicating bug or build problem)
*/
- RESULT_FATAL_ERROR_INTERNAL(3),
+ RESULT_FATAL_ERROR_INTERNAL(102),
// non-fatal errors
/**
* Network ID not valid
*/
- RESULT_ERROR_NETWORK_NOT_FOUND(1000);
+ RESULT_ERROR_NETWORK_NOT_FOUND(1000),
+
+ RESULT_ERROR_UNSUPPORTED_OPERATION(1001),
+
+ RESULT_ERROR_BAD_PARAMETER(1002);
+
private final int id;
ResultCode(int id) { this.id = id; }
public int getValue() { return id; }
public boolean isFatal(int id) {
- return (id > 0 && id < 1000);
+ return (id > 100 && id < 1000);
}
} \ No newline at end of file