public enum ErrorCode extends Enum<ErrorCode>
| Modifier and Type | Class and Description |
|---|---|
static class |
ErrorCode.Category |
| Modifier and Type | Method and Description |
|---|---|
static ErrorCode |
fromInt(int errorCode) |
ErrorCode.Category |
getCategory()
Returns the getCategory of the error.
|
int |
intValue()
Returns the numerical value for this error code.
|
String |
toString() |
static ErrorCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ErrorCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ErrorCode UNKNOWN
public static final ErrorCode IO_EXCEPTION
public static final ErrorCode JSON_EXCEPTION
public static final ErrorCode CONNECTION_CLOSED
public static final ErrorCode OTHER_ERROR
public static final ErrorCode UNKNOWN_MESSAGE
public static final ErrorCode BAD_SYNTAX
public static final ErrorCode LIMITS_EXCEEDED
public static final ErrorCode WRONG_PROTOCOL_VERSION
public static final ErrorCode BAD_SESSION_IDENT
public static final ErrorCode REUSE_OF_SESSION_IDENT
public static final ErrorCode BOUND_IN_OTHER_SESSION
public static final ErrorCode BAD_MESSAGE_ORDER
public static final ErrorCode SESSION_CLOSED
public static final ErrorCode OTHER_SESSION_ERROR
public static final ErrorCode TOKEN_EXPIRED
public static final ErrorCode BAD_AUTHENTICATION
public static final ErrorCode ILLEGAL_REALM_PATH
public static final ErrorCode NO_SUCH_PATH
public static final ErrorCode PERMISSION_DENIED
public static final ErrorCode BAD_SERVER_FILE_IDENT
public static final ErrorCode BAD_CLIENT_FILE_IDENT
public static final ErrorCode BAD_SERVER_VERSION
public static final ErrorCode BAD_CLIENT_VERSION
public static final ErrorCode DIVERGING_HISTORIES
public static final ErrorCode BAD_CHANGESET
public static final ErrorCode INVALID_PARAMETERS
public static final ErrorCode MISSING_PARAMETERS
public static final ErrorCode INVALID_CREDENTIALS
public static final ErrorCode UNKNOWN_ACCOUNT
public static final ErrorCode EXISTING_ACCOUNT
public static final ErrorCode ACCESS_DENIED
public static final ErrorCode EXPIRED_REFRESH_TOKEN
public static ErrorCode[] values()
for (ErrorCode c : ErrorCode.values()) System.out.println(c);
public static ErrorCode valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic int intValue()
int value.public ErrorCode.Category getCategory()
Errors come in 2 categories: FATAL, RECOVERABLE
FATAL: The session cannot be recovered and needs to be re-created. A likely cause is that the User does not
have access to this Realm. Check that the SyncConfiguration is correct. Any fatal error will cause
the session to be become SessionState.STOPPED.
RECOVERABLE: Temporary error. The session becomes SessionState.UNBOUND, but will automatically try to
recover as soon as possible.
public static ErrorCode fromInt(int errorCode)