public enum ErrorCode extends Enum<ErrorCode>
Modifier and Type | Class and Description |
---|---|
static class |
ErrorCode.Category |
Modifier and Type | Method and Description |
---|---|
static ErrorCode |
fromException(Exception exception)
|
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 CLIENT_RESET
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 BAD_ORIGIN_FILE_IDENT
public static final ErrorCode BAD_SERVER_VERSION_DOWNLOAD
public static final ErrorCode BAD_CHANGESET_DOWNLOAD
public static final ErrorCode BAD_REQUEST_IDENT
public static final ErrorCode BAD_ERROR_CODE
public static final ErrorCode BAD_COMPRESSION
public static final ErrorCode BAD_CLIENT_VERSION_DOWNLOAD
public static final ErrorCode SSL_SERVER_CERT_REJECTED
public static final ErrorCode PONG_TIMEOUT
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 DISABLED_SESSION
public static final ErrorCode PARTIAL_SYNC_DISABLED
public static final ErrorCode MULTIPLE_CHOICES
public static final ErrorCode MOVED_PERMANENTLY
public static final ErrorCode FOUND
public static final ErrorCode SEE_OTHER
public static final ErrorCode NOT_MODIFIED
public static final ErrorCode USE_PROXY
public static final ErrorCode TEMPORARY_REDIRECT
public static final ErrorCode PERMANENT_REDIRECT
public static final ErrorCode BAD_REQUEST
public static final ErrorCode UNAUTHORIZED
public static final ErrorCode PAYMENT_REQUIRED
public static final ErrorCode FORBIDDEN
public static final ErrorCode NOT_FOUND
public static final ErrorCode METHOD_NOT_ALLOWED
public static final ErrorCode NOT_ACCEPTABLE
public static final ErrorCode PROXY_AUTHENTICATION_REQUIRED
public static final ErrorCode REQUEST_TIMEOUT
public static final ErrorCode CONFLICT
public static final ErrorCode GONE
public static final ErrorCode LENGTH_REQUIRED
public static final ErrorCode PRECONDITION_FAILED
public static final ErrorCode PAYLOAD_TOO_LARGE
public static final ErrorCode URI_TOO_LONG
public static final ErrorCode UNSUPPORTED_MEDIA_TYPE
public static final ErrorCode RANGE_NOT_SATISFIABLE
public static final ErrorCode EXPECTATION_FAILED
public static final ErrorCode MISDIRECTED_REQUEST
public static final ErrorCode UNPROCESSABLE_ENTITY
public static final ErrorCode LOCKED
public static final ErrorCode FAILED_DEPENDENCY
public static final ErrorCode UPGRADE_REQUIRED
public static final ErrorCode PRECONDITION_REQUIRED
public static final ErrorCode TOO_MANY_REQUESTS
public static final ErrorCode REQUEST_HEADER_FIELDS_TOO_LARGE
public static final ErrorCode UNAVAILABLE_FOR_LEGAL_REASONS
public static final ErrorCode INTERNAL_SERVER_ERROR
public static final ErrorCode NOT_IMPLEMENTED
public static final ErrorCode BAD_GATEWAY
public static final ErrorCode SERVICE_UNAVAILABLE
public static final ErrorCode GATEWAY_TIMEOUT
public static final ErrorCode HTTP_VERSION_NOT_SUPPORTED
public static final ErrorCode VARIANT_ALSO_NEGOTIATES
public static final ErrorCode INSUFFICIENT_STORAGE
public static final ErrorCode LOOP_DETECTED
public static final ErrorCode NOT_EXTENDED
public static final ErrorCode NETWORK_AUTHENTICATION_REQUIRED
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 final ErrorCode INVALID_HOST
public static final ErrorCode EXPIRED_PERMISSION_OFFER
public static final ErrorCode AMBIGUOUS_PERMISSION_OFFER_TOKEN
public static final ErrorCode FILE_MAY_NOT_BE_SHARED
public static final ErrorCode SERVER_MISCONFIGURATION
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.
RECOVERABLE: Temporary error. The session will automatically try to recover as soon as possible.
public static ErrorCode fromInt(int errorCode)