Enum ErrorCode
On this page
- io.realm.mongodb
- Nested Class Summary
- Enum Constant Summary
- Method Summary
- Inherited Methods
- Enum Constant Detail
ACCOUNT_NAME_IN_USE
API_KEY_ALREADY_EXISTS
API_KEY_NOT_FOUND
ARGUMENTS_NOT_ALLOWED
AUTH_ERROR
AUTH_PROVIDER_ALREADY_EXISTS
AUTH_PROVIDER_DUPLICATE_NAME
AUTH_PROVIDER_NOT_FOUND
AUTO_CLIENT_RESET_FAILURE
AWS_ERROR
BAD_AUTHENTICATION
BAD_CHANGESET
BAD_CHANGESETS
BAD_CHANGESET_HEADER_SYNTAX
BAD_CHANGESET_SIZE
BAD_CLIENT_FILE
BAD_CLIENT_FILE_IDENT
BAD_CLIENT_VERSION
BAD_DECOMPRESSION
BAD_GATEWAY
BAD_MESSAGE_ORDER
BAD_ORIGIN_FILE_IDENT
BAD_QUERY
BAD_REQUEST
BAD_SERVER_FILE_IDENT
BAD_SERVER_VERSION
BAD_SESSION_IDENT
BAD_SYNTAX
BOUND_IN_OTHER_SESSION
BSON_CODEC_NOT_FOUND
BSON_DECODING
BSON_ENCODING
CLIENT_BAD_CHANGESET
CLIENT_BAD_CHANGESET_HEADER_SYNTAX
CLIENT_BAD_CHANGESET_SIZE
CLIENT_BAD_CLIENT_FILE_IDENT
CLIENT_BAD_CLIENT_FILE_IDENT_SALT
CLIENT_BAD_CLIENT_VERSION_DOWNLOAD
CLIENT_BAD_COMPRESSION
CLIENT_BAD_ERROR_CODE
CLIENT_BAD_MESSAGE_ORDER
CLIENT_BAD_OBJECT_ID_SUBSTITUTIONS
CLIENT_BAD_ORIGIN_FILE_IDENT
CLIENT_BAD_PROGRESS
CLIENT_BAD_PROTOCOL_FROM_SERVER
CLIENT_BAD_REQUEST_IDENT
CLIENT_BAD_SERIAL_TRANSACT_STATUS
CLIENT_BAD_SERVER_VERSION
CLIENT_BAD_SESSION_IDENT
CLIENT_BAD_STATE_MESSAGE
CLIENT_BAD_TIMESTAMP
CLIENT_CONNECTION_CLOSED
CLIENT_CONNECT_TIMEOUT
CLIENT_FILE_BLACKLISTED
CLIENT_FILE_EXPIRED
CLIENT_FILE_IDENT
CLIENT_HTTP_TUNNEL_FAILED
CLIENT_LIMITS_EXCEEDED
CLIENT_MISSING_PROTOCOL_FEATURE
CLIENT_PONG_TIMEOUT
CLIENT_PROTOCOL_MISMATCH
CLIENT_RESET
CLIENT_SSL_SERVER_CERT_REJECTED
CLIENT_TOO_NEW_FOR_SERVER
CLIENT_TOO_OLD_FOR_SERVER
CLIENT_UNKNOWN_MESSAGE
CONFLICT
CONNECTION_ADDRESS_IN_USE
CONNECTION_CLOSED
CONNECTION_CONNECTION_ABORTED
CONNECTION_REFUSED
CONNECTION_RESET_BY_PEER
CONNECTION_SOCKET_SHUTDOWN
DISABLED_SESSION
DIVERGING_HISTORIES
DOMAIN_NOT_ALLOWED
EVENT_DESERIALIZING
EXECUTION_TIME_LIMIT_EXCEEDED
EXPECTATION_FAILED
FAILED_DEPENDENCY
FORBIDDEN
FOUND
FUNCTION_ALREADY_EXISTS
FUNCTION_DUPLICATE_NAME
FUNCTION_EXECUTION_ERROR
FUNCTION_INVALID
FUNCTION_NOT_FOUND
FUNCTION_SYNTAX_ERROR
GATEWAY_TIMEOUT
GCM_ERROR
GONE
HTTP_BAD_REQUEST
HTTP_ERROR
HTTP_VERSION_NOT_SUPPORTED
ILLEGAL_REALM_PATH
INCOMING_WEBHOOK_ALREADY_EXISTS
INCOMING_WEBHOOK_AUTH_FAILED
INCOMING_WEBHOOK_DUPLICATE_NAME
INCOMING_WEBHOOK_NOT_FOUND
INITIAL_SYNC_NOT_COMPLETE
INSUFFICIENT_STORAGE
INTERNAL_SERVER_ERROR
INVALID_EMAIL_PASSWORD
INVALID_PARAMETER
INVALID_SCHEMA_CHANGE
INVALID_SESSION
LENGTH_REQUIRED
LIMITS_EXCEEDED
LOCKED
LOOP_DETECTED
METHOD_NOT_ALLOWED
MISC_DELIMITER_NOT_FOUND
MISC_END_OF_INPUT
MISC_PREMATURE_END_OF_INPUT
MISDIRECTED_REQUEST
MISSING_PARAMETER
MONGODB_ERROR
MOVED_PERMANENTLY
MULTIPLE_CHOICES
NETWORK_AUTHENTICATION_REQUIRED
NETWORK_INTERRUPTED
NETWORK_IO_EXCEPTION
NETWORK_UNKNOWN
NOT_ACCEPTABLE
NOT_CALLABLE
NOT_EXTENDED
NOT_FOUND
NOT_IMPLEMENTED
NOT_MODIFIED
NO_MATCHING_RULE_FOUND
NO_SUCH_PATH
OBJECT_ALREADY_EXISTS
OTHER_ERROR
OTHER_SESSION_ERROR
PARTIAL_SYNC_DISABLED
PAYLOAD_TOO_LARGE
PAYMENT_REQUIRED
PERMANENT_REDIRECT
PERMISSION_DENIED
PRECONDITION_FAILED
PRECONDITION_REQUIRED
PROXY_AUTHENTICATION_REQUIRED
RANGE_NOT_SATISFIABLE
READ_SIZE_LIMIT_EXCEEDED
REQUEST_HEADER_FIELDS_TOO_LARGE
REQUEST_TIMEOUT
RESTRICTED_HOST
REUSE_OF_SESSION_IDENT
RULE_ALREADY_EXISTS
RULE_DUPLICATE_NAME
RULE_NOT_FOUND
SEE_OTHER
SERVER_FILE_DELETED
SERVER_PERMISSIONS_CHANGED
SERVICE_ALREADY_EXISTS
SERVICE_COMMAND_NOT_FOUND
SERVICE_INTERNAL_SERVER_ERROR
SERVICE_NONE
SERVICE_NOT_FOUND
SERVICE_TYPE_NOT_FOUND
SERVICE_UNAVAILABLE
SERVICE_UNKNOWN
SESSION_CLOSED
TEMPORARY_REDIRECT
TOKEN_EXPIRED
TOO_MANY_REQUESTS
TOO_MANY_SESSIONS
TRANSACT_BEFORE_UPLOAD
TWILIO_ERROR
UNAUTHORIZED
UNAVAILABLE_FOR_LEGAL_REASONS
UNKNOWN
UNKNOWN_MESSAGE
UNPROCESSABLE_ENTITY
UNSUPPORTED_MEDIA_TYPE
UNSUPPORTED_SESSION_FEATURE
UPGRADE_REQUIRED
URI_TOO_LONG
USER_ALREADY_CONFIRMED
USER_APP_DOMAIN_MISMATCH
USER_BLACKLISTED
USER_DISABLED
USER_MISMATCH
USER_NOT_FOUND
USE_PROXY
VALUE_ALREADY_EXISTS
VALUE_DUPLICATE_NAME
VALUE_NOT_FOUND
VARIANT_ALSO_NEGOTIATES
WRITE_NOT_ALLOWED
WRONG_PROTOCOL_VERSION
- Method Detail
- fromNativeError
- getCategory
- getType
- intValue
- toString
- valueOf
- values
io.realm.mongodb
This class enumerate all potential errors related to using the Object Server or synchronizing data.
Nested Class Summary
Modifier and Type | Class and Description |
---|---|
public static | |
public static final |
Enum Constant Summary
Enum Constant and Description |
---|
Method Summary
Modifier and Type | Method and Description |
---|---|
public static ErrorCode | Converts a native error to the appropriate Java equivalent |
public ErrorCode.Category | getCategory () Returns the getCategory of the error. |
public String | getType () Returns the type of error. |
public int | intValue () Returns the numerical value for this error code. |
public String | toString () |
public static ErrorCode | |
public static ErrorCode | values () |
Inherited Methods
Methods inherited from class java.lang.Object :
getClass
,hashCode
,equals
,clone
,toString
,notify
,notifyAll
,wait
,wait
,wait
,finalize
Methods inherited from class java.lang.Enum :
name
,ordinal
,toString
,equals
,hashCode
,clone
,compareTo
,getDeclaringClass
,valueOf
,finalize
Enum Constant Detail
ACCOUNT_NAME_IN_USE
public static final ErrorCode
API_KEY_ALREADY_EXISTS
public static final ErrorCode
API_KEY_NOT_FOUND
public static final ErrorCode
ARGUMENTS_NOT_ALLOWED
public static final ErrorCode
AUTH_ERROR
public static final ErrorCode
AUTH_PROVIDER_ALREADY_EXISTS
public static final ErrorCode
AUTH_PROVIDER_DUPLICATE_NAME
public static final ErrorCode
AUTH_PROVIDER_NOT_FOUND
public static final ErrorCode
AUTO_CLIENT_RESET_FAILURE
public static final ErrorCode
AWS_ERROR
public static final ErrorCode
BAD_AUTHENTICATION
public static final ErrorCode
BAD_CHANGESET
public static final ErrorCode
BAD_CHANGESETS
public static final ErrorCode
BAD_CHANGESET_HEADER_SYNTAX
public static final ErrorCode
BAD_CHANGESET_SIZE
public static final ErrorCode
BAD_CLIENT_FILE
public static final ErrorCode
BAD_CLIENT_FILE_IDENT
public static final ErrorCode
BAD_CLIENT_VERSION
public static final ErrorCode
BAD_DECOMPRESSION
public static final ErrorCode
BAD_GATEWAY
public static final ErrorCode
BAD_MESSAGE_ORDER
public static final ErrorCode
BAD_ORIGIN_FILE_IDENT
public static final ErrorCode
BAD_QUERY
public static final ErrorCode
BAD_REQUEST
public static final ErrorCode
BAD_SERVER_FILE_IDENT
public static final ErrorCode
BAD_SERVER_VERSION
public static final ErrorCode
BAD_SESSION_IDENT
public static final ErrorCode
BAD_SYNTAX
public static final ErrorCode
BOUND_IN_OTHER_SESSION
public static final ErrorCode
BSON_CODEC_NOT_FOUND
public static final ErrorCode
BSON_DECODING
public static final ErrorCode
BSON_ENCODING
public static final ErrorCode
CLIENT_BAD_CHANGESET
public static final ErrorCode
CLIENT_BAD_CHANGESET_HEADER_SYNTAX
public static final ErrorCode
CLIENT_BAD_CHANGESET_SIZE
public static final ErrorCode
CLIENT_BAD_CLIENT_FILE_IDENT
public static final ErrorCode
CLIENT_BAD_CLIENT_FILE_IDENT_SALT
public static final ErrorCode
CLIENT_BAD_CLIENT_VERSION_DOWNLOAD
public static final ErrorCode
CLIENT_BAD_COMPRESSION
public static final ErrorCode
CLIENT_BAD_ERROR_CODE
public static final ErrorCode
CLIENT_BAD_MESSAGE_ORDER
public static final ErrorCode
CLIENT_BAD_OBJECT_ID_SUBSTITUTIONS
public static final ErrorCode
CLIENT_BAD_ORIGIN_FILE_IDENT
public static final ErrorCode
CLIENT_BAD_PROGRESS
public static final ErrorCode
CLIENT_BAD_PROTOCOL_FROM_SERVER
public static final ErrorCode
CLIENT_BAD_REQUEST_IDENT
public static final ErrorCode
CLIENT_BAD_SERIAL_TRANSACT_STATUS
public static final ErrorCode
CLIENT_BAD_SERVER_VERSION
public static final ErrorCode
CLIENT_BAD_SESSION_IDENT
public static final ErrorCode
CLIENT_BAD_STATE_MESSAGE
public static final ErrorCode
CLIENT_BAD_TIMESTAMP
public static final ErrorCode
CLIENT_CONNECTION_CLOSED
public static final ErrorCode
CLIENT_CONNECT_TIMEOUT
public static final ErrorCode
CLIENT_FILE_BLACKLISTED
public static final ErrorCode
CLIENT_FILE_EXPIRED
public static final ErrorCode
CLIENT_FILE_IDENT
public static final ErrorCode
CLIENT_HTTP_TUNNEL_FAILED
public static final ErrorCode
CLIENT_LIMITS_EXCEEDED
public static final ErrorCode
CLIENT_MISSING_PROTOCOL_FEATURE
public static final ErrorCode
CLIENT_PONG_TIMEOUT
public static final ErrorCode
CLIENT_PROTOCOL_MISMATCH
public static final ErrorCode
CLIENT_RESET
public static final ErrorCode
CLIENT_SSL_SERVER_CERT_REJECTED
public static final ErrorCode
CLIENT_TOO_NEW_FOR_SERVER
public static final ErrorCode
CLIENT_TOO_OLD_FOR_SERVER
public static final ErrorCode
CLIENT_UNKNOWN_MESSAGE
public static final ErrorCode
CONFLICT
public static final ErrorCode
CONNECTION_ADDRESS_IN_USE
public static final ErrorCode
CONNECTION_CLOSED
public static final ErrorCode
CONNECTION_CONNECTION_ABORTED
public static final ErrorCode
CONNECTION_REFUSED
public static final ErrorCode
CONNECTION_RESET_BY_PEER
public static final ErrorCode
CONNECTION_SOCKET_SHUTDOWN
public static final ErrorCode
DISABLED_SESSION
public static final ErrorCode
DIVERGING_HISTORIES
public static final ErrorCode
DOMAIN_NOT_ALLOWED
public static final ErrorCode
EVENT_DESERIALIZING
public static final ErrorCode
EXECUTION_TIME_LIMIT_EXCEEDED
public static final ErrorCode
EXPECTATION_FAILED
public static final ErrorCode
FAILED_DEPENDENCY
public static final ErrorCode
FORBIDDEN
public static final ErrorCode
FOUND
public static final ErrorCode
FUNCTION_ALREADY_EXISTS
public static final ErrorCode
FUNCTION_DUPLICATE_NAME
public static final ErrorCode
FUNCTION_EXECUTION_ERROR
public static final ErrorCode
FUNCTION_INVALID
public static final ErrorCode
FUNCTION_NOT_FOUND
public static final ErrorCode
FUNCTION_SYNTAX_ERROR
public static final ErrorCode
GATEWAY_TIMEOUT
public static final ErrorCode
GCM_ERROR
public static final ErrorCode
GONE
public static final ErrorCode
HTTP_BAD_REQUEST
public static final ErrorCode
HTTP_ERROR
public static final ErrorCode
HTTP_VERSION_NOT_SUPPORTED
public static final ErrorCode
ILLEGAL_REALM_PATH
public static final ErrorCode
INCOMING_WEBHOOK_ALREADY_EXISTS
public static final ErrorCode
INCOMING_WEBHOOK_AUTH_FAILED
public static final ErrorCode
INCOMING_WEBHOOK_DUPLICATE_NAME
public static final ErrorCode
INCOMING_WEBHOOK_NOT_FOUND
public static final ErrorCode
INITIAL_SYNC_NOT_COMPLETE
public static final ErrorCode
INSUFFICIENT_STORAGE
public static final ErrorCode
INTERNAL_SERVER_ERROR
public static final ErrorCode
INVALID_EMAIL_PASSWORD
public static final ErrorCode
INVALID_PARAMETER
public static final ErrorCode
INVALID_SCHEMA_CHANGE
public static final ErrorCode
INVALID_SESSION
public static final ErrorCode
LENGTH_REQUIRED
public static final ErrorCode
LIMITS_EXCEEDED
public static final ErrorCode
LOCKED
public static final ErrorCode
LOOP_DETECTED
public static final ErrorCode
METHOD_NOT_ALLOWED
public static final ErrorCode
MISC_DELIMITER_NOT_FOUND
public static final ErrorCode
MISC_END_OF_INPUT
public static final ErrorCode
MISC_PREMATURE_END_OF_INPUT
public static final ErrorCode
MISDIRECTED_REQUEST
public static final ErrorCode
MISSING_PARAMETER
public static final ErrorCode
MONGODB_ERROR
public static final ErrorCode
MOVED_PERMANENTLY
public static final ErrorCode
MULTIPLE_CHOICES
public static final ErrorCode
NETWORK_AUTHENTICATION_REQUIRED
public static final ErrorCode
NETWORK_INTERRUPTED
public static final ErrorCode
NETWORK_IO_EXCEPTION
public static final ErrorCode
NETWORK_UNKNOWN
public static final ErrorCode
NOT_ACCEPTABLE
public static final ErrorCode
NOT_CALLABLE
public static final ErrorCode
NOT_EXTENDED
public static final ErrorCode
NOT_FOUND
public static final ErrorCode
NOT_IMPLEMENTED
public static final ErrorCode
NOT_MODIFIED
public static final ErrorCode
NO_MATCHING_RULE_FOUND
public static final ErrorCode
NO_SUCH_PATH
public static final ErrorCode
OBJECT_ALREADY_EXISTS
public static final ErrorCode
OTHER_ERROR
public static final ErrorCode
OTHER_SESSION_ERROR
public static final ErrorCode
PARTIAL_SYNC_DISABLED
public static final ErrorCode
PAYLOAD_TOO_LARGE
public static final ErrorCode
PAYMENT_REQUIRED
public static final ErrorCode
PERMANENT_REDIRECT
public static final ErrorCode
PERMISSION_DENIED
public static final ErrorCode
PRECONDITION_FAILED
public static final ErrorCode
PRECONDITION_REQUIRED
public static final ErrorCode
PROXY_AUTHENTICATION_REQUIRED
public static final ErrorCode
RANGE_NOT_SATISFIABLE
public static final ErrorCode
READ_SIZE_LIMIT_EXCEEDED
public static final ErrorCode
REQUEST_HEADER_FIELDS_TOO_LARGE
public static final ErrorCode
REQUEST_TIMEOUT
public static final ErrorCode
RESTRICTED_HOST
public static final ErrorCode
REUSE_OF_SESSION_IDENT
public static final ErrorCode
RULE_ALREADY_EXISTS
public static final ErrorCode
RULE_DUPLICATE_NAME
public static final ErrorCode
RULE_NOT_FOUND
public static final ErrorCode
SEE_OTHER
public static final ErrorCode
SERVER_FILE_DELETED
public static final ErrorCode
SERVER_PERMISSIONS_CHANGED
public static final ErrorCode
SERVICE_ALREADY_EXISTS
public static final ErrorCode
SERVICE_COMMAND_NOT_FOUND
public static final ErrorCode
SERVICE_INTERNAL_SERVER_ERROR
public static final ErrorCode
SERVICE_NONE
public static final ErrorCode
SERVICE_NOT_FOUND
public static final ErrorCode
SERVICE_TYPE_NOT_FOUND
public static final ErrorCode
SERVICE_UNAVAILABLE
public static final ErrorCode
SERVICE_UNKNOWN
public static final ErrorCode
SESSION_CLOSED
public static final ErrorCode
TEMPORARY_REDIRECT
public static final ErrorCode
TOKEN_EXPIRED
public static final ErrorCode
TOO_MANY_REQUESTS
public static final ErrorCode
TOO_MANY_SESSIONS
public static final ErrorCode
TRANSACT_BEFORE_UPLOAD
public static final ErrorCode
TWILIO_ERROR
public static final ErrorCode
UNAUTHORIZED
public static final ErrorCode
UNAVAILABLE_FOR_LEGAL_REASONS
public static final ErrorCode
UNKNOWN
public static final ErrorCode
UNKNOWN_MESSAGE
public static final ErrorCode
UNPROCESSABLE_ENTITY
public static final ErrorCode
UNSUPPORTED_MEDIA_TYPE
public static final ErrorCode
UNSUPPORTED_SESSION_FEATURE
public static final ErrorCode
UPGRADE_REQUIRED
public static final ErrorCode
URI_TOO_LONG
public static final ErrorCode
USER_ALREADY_CONFIRMED
public static final ErrorCode
USER_APP_DOMAIN_MISMATCH
public static final ErrorCode
USER_BLACKLISTED
public static final ErrorCode
USER_DISABLED
public static final ErrorCode
USER_MISMATCH
public static final ErrorCode
USER_NOT_FOUND
public static final ErrorCode
USE_PROXY
public static final ErrorCode
VALUE_ALREADY_EXISTS
public static final ErrorCode
VALUE_DUPLICATE_NAME
public static final ErrorCode
VALUE_NOT_FOUND
public static final ErrorCode
VARIANT_ALSO_NEGOTIATES
public static final ErrorCode
WRITE_NOT_ALLOWED
public static final ErrorCode
WRONG_PROTOCOL_VERSION
public static final ErrorCode
Method Detail
fromNativeError
Converts a native error to the appropriate Java equivalent Parameters
Returns the Java error representing the native error. This method will never throw, so in case a Java error does not exists. UNKNOWN will be returned. |
getCategory
public ErrorCode.Category getCategory () |
---|
Returns the getCategory of the error.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. Returns the severity of the error. |
getType
intValue
public int intValue () |
---|
Returns the numerical value for this error code. Note that an error is only uniquely identified by the Returns the error code as an unique |