public enum ErrorCode extends Enum<ErrorCode>
Modifier and Type | Class and Description |
---|---|
static class |
ErrorCode.Category |
static class |
ErrorCode.Type |
Modifier and Type | Method and Description |
---|---|
static ErrorCode |
fromException(Exception exception)
|
static ErrorCode |
fromNativeError(String type,
int errorCode)
Converts a native error to the appropriate Java equivalent
|
ErrorCode.Category |
getCategory()
Returns the getCategory of the error.
|
String |
getType()
Returns the type of 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_DECOMPRESSION
public static final ErrorCode BAD_CHANGESET_HEADER_SYNTAX
public static final ErrorCode BAD_CHANGESET_SIZE
public static final ErrorCode BAD_CHANGESETS
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 UNSUPPORTED_SESSION_FEATURE
public static final ErrorCode BAD_ORIGIN_FILE_IDENT
public static final ErrorCode BAD_CLIENT_FILE
public static final ErrorCode SERVER_FILE_DELETED
public static final ErrorCode CLIENT_FILE_BLACKLISTED
public static final ErrorCode USER_BLACKLISTED
public static final ErrorCode TRANSACT_BEFORE_UPLOAD
public static final ErrorCode CLIENT_FILE_EXPIRED
public static final ErrorCode CLIENT_CONNECTION_CLOSED
public static final ErrorCode CLIENT_UNKNOWN_MESSAGE
public static final ErrorCode CLIENT_LIMITS_EXCEEDED
public static final ErrorCode CLIENT_BAD_SESSION_IDENT
public static final ErrorCode CLIENT_BAD_MESSAGE_ORDER
public static final ErrorCode CLIENT_BAD_CLIENT_FILE_IDENT
public static final ErrorCode CLIENT_BAD_PROGRESS
public static final ErrorCode CLIENT_BAD_CHANGESET_HEADER_SYNTAX
public static final ErrorCode CLIENT_BAD_CHANGESET_SIZE
public static final ErrorCode CLIENT_BAD_ORIGIN_FILE_IDENT
public static final ErrorCode CLIENT_BAD_SERVER_VERSION
public static final ErrorCode CLIENT_BAD_CHANGESET
public static final ErrorCode CLIENT_BAD_REQUEST_IDENT
public static final ErrorCode CLIENT_BAD_ERROR_CODE
public static final ErrorCode CLIENT_BAD_COMPRESSION
public static final ErrorCode CLIENT_BAD_CLIENT_VERSION_DOWNLOAD
public static final ErrorCode CLIENT_SSL_SERVER_CERT_REJECTED
public static final ErrorCode CLIENT_PONG_TIMEOUT
public static final ErrorCode CLIENT_BAD_CLIENT_FILE_IDENT_SALT
public static final ErrorCode CLIENT_FILE_IDENT
public static final ErrorCode CLIENT_CONNECT_TIMEOUT
public static final ErrorCode CLIENT_BAD_TIMESTAMP
public static final ErrorCode CLIENT_BAD_PROTOCOL_FROM_SERVER
public static final ErrorCode CLIENT_TOO_OLD_FOR_SERVER
public static final ErrorCode CLIENT_TOO_NEW_FOR_SERVER
public static final ErrorCode CLIENT_PROTOCOL_MISMATCH
public static final ErrorCode CLIENT_BAD_STATE_MESSAGE
public static final ErrorCode CLIENT_MISSING_PROTOCOL_FEATURE
public static final ErrorCode CLIENT_BAD_SERIAL_TRANSACT_STATUS
public static final ErrorCode CLIENT_BAD_OBJECT_ID_SUBSTITUTIONS
public static final ErrorCode CLIENT_HTTP_TUNNEL_FAILED
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 REALM_NOT_FOUND
public static final ErrorCode UNKNOWN_USER
public static final ErrorCode WRONG_REALM_TYPE
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 final ErrorCode CONNECTION_RESET_BY_PEER
public static final ErrorCode CONNECTION_SOCKET_SHUTDOWN
public static final ErrorCode CONNECTION_REFUSED
public static final ErrorCode CONNECTION_ADDRESS_IN_USE
public static final ErrorCode CONNECTION_CONNECTION_ABORTED
public static final ErrorCode MISC_END_OF_INPUT
public static final ErrorCode MISC_PREMATURE_END_OF_INPUT
public static final ErrorCode MISC_DELIMITER_NOT_FOUND
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()
(type:value)
pair.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 String getType()
(type:value)
pair.public static ErrorCode fromNativeError(String type, int errorCode)
type
- type of error. This is normally the C++ category.errorCode
- specific code within the typeUNKNOWN
will be returned.