aboutsummaryrefslogtreecommitdiff
path: root/java/android/OlmLibSdk/olm-sdk
diff options
context:
space:
mode:
authorpedroGitt <pedro.contreiras@amdocs.com>2016-10-19 15:23:19 +0200
committerpedroGitt <pedro.contreiras@amdocs.com>2016-10-19 15:23:19 +0200
commit5b524efc44a91837934c2252c62b58eaaf6847aa (patch)
tree0946d2abfe5385f0c303347e81015480bfde6ef3 /java/android/OlmLibSdk/olm-sdk
parent26d9934fc84f3da742e4c38f37ee50a9ddb5237b (diff)
Update due to the de/serialization API
Diffstat (limited to 'java/android/OlmLibSdk/olm-sdk')
-rw-r--r--java/android/OlmLibSdk/olm-sdk/src/main/java/org/matrix/olm/OlmException.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/java/android/OlmLibSdk/olm-sdk/src/main/java/org/matrix/olm/OlmException.java b/java/android/OlmLibSdk/olm-sdk/src/main/java/org/matrix/olm/OlmException.java
index 68e02fd..3977b7b 100644
--- a/java/android/OlmLibSdk/olm-sdk/src/main/java/org/matrix/olm/OlmException.java
+++ b/java/android/OlmLibSdk/olm-sdk/src/main/java/org/matrix/olm/OlmException.java
@@ -25,12 +25,18 @@ public class OlmException extends Exception {
public static final int EXCEPTION_CODE_CREATE_INBOUND_GROUP_SESSION = 1;
public static final int EXCEPTION_CODE_INIT_OUTBOUND_GROUP_SESSION = 2;
public static final int EXCEPTION_CODE_INIT_INBOUND_GROUP_SESSION = 3;
+ public static final int EXCEPTION_CODE_ACCOUNT_SERIALIZATION = 4;
+ public static final int EXCEPTION_CODE_ACCOUNT_DESERIALIZATION = 5;
+ public static final int EXCEPTION_CODE_SESSION_SERIALIZATION = 6;
+ public static final int EXCEPTION_CODE_SESSION_DESERIALIZATION = 7;
// exception human readable messages
public static final String EXCEPTION_MSG_NEW_OUTBOUND_GROUP_SESSION = "failed to create a new outbound group Session";
public static final String EXCEPTION_MSG_NEW_INBOUND_GROUP_SESSION = "failed to create a new inbound group Session";
public static final String EXCEPTION_MSG_INIT_OUTBOUND_GROUP_SESSION = "failed to initialize a new outbound group Session";
public static final String EXCEPTION_MSG_INIT_INBOUND_GROUP_SESSION = "failed to initialize a new inbound group Session";
+ public static final String EXCEPTION_MSG_INIT_NEW_ACCOUNT_DESERIALIZATION = "initNewAccount() failure";
+ public static final String EXCEPTION_MSG_INIT_ACCOUNT_DESERIALIZATION = "initWithSerializedData() failure";
/** exception code to be taken from: {@link #EXCEPTION_CODE_CREATE_OUTBOUND_GROUP_SESSION} {@link #EXCEPTION_CODE_CREATE_INBOUND_GROUP_SESSION}
* {@link #EXCEPTION_CODE_INIT_OUTBOUND_GROUP_SESSION} {@link #EXCEPTION_CODE_INIT_INBOUND_GROUP_SESSION}**/
@@ -48,4 +54,9 @@ public class OlmException extends Exception {
public int getExceptionCode() {
return mCode;
}
+
+ @Override
+ public String getMessage() {
+ return mMessage;
+ }
}