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 |
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 NETWORK_IO_EXCEPTION
public static final ErrorCode NETWORK_INTERRUPTED
public static final ErrorCode NETWORK_UNKNOWN
public static final ErrorCode BSON_CODEC_NOT_FOUND
public static final ErrorCode BSON_ENCODING
public static final ErrorCode BSON_DECODING
public static final ErrorCode EVENT_DESERIALIZING
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 USER_MISMATCH
public static final ErrorCode TOO_MANY_SESSIONS
public static final ErrorCode INVALID_SCHEMA_CHANGE
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 HTTP_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_SESSION
public static final ErrorCode USER_APP_DOMAIN_MISMATCH
public static final ErrorCode DOMAIN_NOT_ALLOWED
public static final ErrorCode READ_SIZE_LIMIT_EXCEEDED
public static final ErrorCode INVALID_PARAMETER
public static final ErrorCode MISSING_PARAMETER
public static final ErrorCode TWILIO_ERROR
public static final ErrorCode GCM_ERROR
public static final ErrorCode HTTP_ERROR
public static final ErrorCode AWS_ERROR
public static final ErrorCode MONGODB_ERROR
public static final ErrorCode ARGUMENTS_NOT_ALLOWED
public static final ErrorCode FUNCTION_EXECUTION_ERROR
public static final ErrorCode NO_MATCHING_RULE_FOUND
public static final ErrorCode SERVICE_INTERNAL_SERVER_ERROR
public static final ErrorCode AUTH_PROVIDER_NOT_FOUND
public static final ErrorCode AUTH_PROVIDER_ALREADY_EXISTS
public static final ErrorCode SERVICE_NOT_FOUND
public static final ErrorCode SERVICE_TYPE_NOT_FOUND
public static final ErrorCode SERVICE_ALREADY_EXISTS
public static final ErrorCode SERVICE_COMMAND_NOT_FOUND
public static final ErrorCode VALUE_NOT_FOUND
public static final ErrorCode VALUE_ALREADY_EXISTS
public static final ErrorCode VALUE_DUPLICATE_NAME
public static final ErrorCode FUNCTION_NOT_FOUND
public static final ErrorCode FUNCTION_ALREADY_EXISTS
public static final ErrorCode FUNCTION_DUPLICATE_NAME
public static final ErrorCode FUNCTION_SYNTAX_ERROR
public static final ErrorCode FUNCTION_INVALID
public static final ErrorCode INCOMING_WEBHOOK_NOT_FOUND
public static final ErrorCode INCOMING_WEBHOOK_ALREADY_EXISTS
public static final ErrorCode INCOMING_WEBHOOK_DUPLICATE_NAME
public static final ErrorCode RULE_NOT_FOUND
public static final ErrorCode API_KEY_NOT_FOUND
public static final ErrorCode RULE_ALREADY_EXISTS
public static final ErrorCode RULE_DUPLICATE_NAME
public static final ErrorCode AUTH_PROVIDER_DUPLICATE_NAME
public static final ErrorCode RESTRICTED_HOST
public static final ErrorCode API_KEY_ALREADY_EXISTS
public static final ErrorCode INCOMING_WEBHOOK_AUTH_FAILED
public static final ErrorCode EXECUTION_TIME_LIMIT_EXCEEDED
public static final ErrorCode NOT_CALLABLE
public static final ErrorCode USER_ALREADY_CONFIRMED
public static final ErrorCode USER_NOT_FOUND
public static final ErrorCode USER_DISABLED
public static final ErrorCode AUTH_ERROR
public static final ErrorCode BAD_REQUEST
public static final ErrorCode ACCOUNT_NAME_IN_USE
public static final ErrorCode SERVICE_UNKNOWN
public static final ErrorCode SERVICE_NONE
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.