Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
Olm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nheko Reborn
Olm
Commits
5b524efc
Commit
5b524efc
authored
8 years ago
by
pedroGitt
Browse files
Options
Downloads
Patches
Plain Diff
Update due to the de/serialization API
parent
26d9934f
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
java/android/OlmLibSdk/olm-sdk/src/main/java/org/matrix/olm/OlmException.java
+11
-0
11 additions, 0 deletions
...dk/olm-sdk/src/main/java/org/matrix/olm/OlmException.java
with
11 additions
and
0 deletions
java/android/OlmLibSdk/olm-sdk/src/main/java/org/matrix/olm/OlmException.java
+
11
−
0
View file @
5b524efc
...
...
@@ -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
;
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment