Error

Parse. Error

Constructs a new Parse.Error object with the given code and message.

Parse.CoreManager.set('PARSE_ERRORS', [{ code, message }]) can be use to override error messages.

Constructor

new Error(code, message)

Parameters:
Name Type Description
code number

An error code constant from Parse.Error.

message string

A detailed description of the error.

Members

ACCOUNT_ALREADY_LINKED

Error code indicating that an an account being linked is already linked to another user.

Properties:
Name Type Description
ACCOUNT_ALREADY_LINKED number

AGGREGATE_ERROR

Error code indicating that there were multiple errors. Aggregate errors have an "errors" property, which is an array of error objects with more detail about each error that occurred.

Properties:
Name Type Description
AGGREGATE_ERROR number

CACHE_MISS

Error code indicating the result was not found in the cache.

Properties:
Name Type Description
CACHE_MISS number

COMMAND_UNAVAILABLE

Error code indicating that the feature you tried to access is only available internally for testing purposes.

Properties:
Name Type Description
COMMAND_UNAVAILABLE number

CONNECTION_FAILED

Error code indicating the connection to the Parse servers failed.

Properties:
Name Type Description
CONNECTION_FAILED number

DUPLICATE_REQUEST

Error code indicating that the request was a duplicate and has been discarded due to idempotency rules.

Properties:
Name Type Description
DUPLICATE_REQUEST number

DUPLICATE_VALUE

Error code indicating that a unique field was given a value that is already taken.

Properties:
Name Type Description
DUPLICATE_VALUE number

EMAIL_MISSING

Error code indicating that the email is missing, but must be specified.

Properties:
Name Type Description
EMAIL_MISSING number

EMAIL_NOT_FOUND

Error code indicating that a user with the specified email was not found.

Properties:
Name Type Description
EMAIL_NOT_FOUND number

EMAIL_TAKEN

Error code indicating that the email has already been taken.

Properties:
Name Type Description
EMAIL_TAKEN number

EXCEEDED_QUOTA

Error code indicating that an application quota was exceeded. Upgrade to resolve.

Properties:
Name Type Description
EXCEEDED_QUOTA number

FILE_DELETE_ERROR

Error code indicating an error deleting a file.

Properties:
Name Type Description
FILE_DELETE_ERROR number

FILE_DELETE_UNNAMED_ERROR

Error code indicating an error deleting an unnamed file.

Properties:
Name Type Description
FILE_DELETE_UNNAMED_ERROR number

FILE_READ_ERROR

Error code indicating the client was unable to read an input file.

Properties:
Name Type Description
FILE_READ_ERROR number

FILE_SAVE_ERROR

Error code indicating an error saving a file.

Properties:
Name Type Description
FILE_SAVE_ERROR number

FILE_TOO_LARGE

Error code indicating a file that was too large.

Properties:
Name Type Description
FILE_TOO_LARGE number

INCORRECT_TYPE

Error code indicating that a field was set to an inconsistent type.

Properties:
Name Type Description
INCORRECT_TYPE number

INTERNAL_SERVER_ERROR

Error code indicating that something has gone wrong with the server.

Properties:
Name Type Description
INTERNAL_SERVER_ERROR number

INVALID_ACL

Error code indicating an invalid ACL was provided.

Properties:
Name Type Description
INVALID_ACL number

INVALID_CHANNEL_NAME

Error code indicating an invalid channel name. A channel name is either an empty string (the broadcast channel) or contains only a-zA-Z0-9_ characters and starts with a letter.

Properties:
Name Type Description
INVALID_CHANNEL_NAME number

INVALID_CLASS_NAME

Error code indicating a missing or invalid classname. Classnames are case-sensitive. They must start with a letter, and a-zA-Z0-9_ are the only valid characters.

Properties:
Name Type Description
INVALID_CLASS_NAME number

INVALID_CONTENT_LENGTH

Error code indicating an invalid content length.

Properties:
Name Type Description
INVALID_CONTENT_LENGTH number

INVALID_EMAIL_ADDRESS

Error code indicating that the email address was invalid.

Properties:
Name Type Description
INVALID_EMAIL_ADDRESS number

INVALID_EVENT_NAME

Error code indicating an invalid event name.

Properties:
Name Type Description
INVALID_EVENT_NAME number

INVALID_FILE_NAME

Error code indicating that an invalid filename was used for ParseFile. A valid file name contains only a-zA-Z0-9_. characters and is between 1 and 128 characters.

Properties:
Name Type Description
INVALID_FILE_NAME number

INVALID_IMAGE_DATA

Error code indicating that invalid image data was provided.

Properties:
Name Type Description
INVALID_IMAGE_DATA number

INVALID_JSON

Error code indicating that badly formed JSON was received upstream. This either indicates you have done something unusual with modifying how things encode to JSON, or the network is failing badly.

Properties:
Name Type Description
INVALID_JSON number

INVALID_KEY_NAME

Error code indicating an invalid key name. Keys are case-sensitive. They must start with a letter, and a-zA-Z0-9_ are the only valid characters.

Properties:
Name Type Description
INVALID_KEY_NAME number

INVALID_LINKED_SESSION

Error code indicating that a user with a linked (e.g. Facebook) account has an invalid session.

Properties:
Name Type Description
INVALID_LINKED_SESSION number

INVALID_NESTED_KEY

Error code indicating that an invalid key was used in a nested JSONObject.

Properties:
Name Type Description
INVALID_NESTED_KEY number

INVALID_POINTER

Error code indicating a malformed pointer. You should not see this unless you have been mucking about changing internal Parse code.

Properties:
Name Type Description
INVALID_POINTER number

INVALID_PUSH_TIME_ERROR

Error code indicating an invalid push time.

Properties:
Name Type Description
INVALID_PUSH_TIME_ERROR number

INVALID_QUERY

Error code indicating you tried to query with a datatype that doesn't support it, like exact matching an array or object.

Properties:
Name Type Description
INVALID_QUERY number

INVALID_ROLE_NAME

Error code indicating that a role's name is invalid.

Properties:
Name Type Description
INVALID_ROLE_NAME number

INVALID_SCHEMA_OPERATION

Error code indicating an invalid operation occured on schema

Properties:
Name Type Description
INVALID_SCHEMA_OPERATION number

INVALID_SESSION_TOKEN

Error code indicating that the current session token is invalid.

Properties:
Name Type Description
INVALID_SESSION_TOKEN number

INVALID_VALUE

Error code indicating that a field had an invalid value.

Properties:
Name Type Description
INVALID_VALUE number

LINKED_ID_MISSING

Error code indicating that a user cannot be linked to an account because that account's id could not be found.

Properties:
Name Type Description
LINKED_ID_MISSING number

MFA_ERROR

Error code indicating an error enabling or verifying MFA

Properties:
Name Type Description
MFA_ERROR number

MFA_TOKEN_REQUIRED

Error code indicating that a valid MFA token must be provided

Properties:
Name Type Description
MFA_TOKEN_REQUIRED number

MISSING_CONTENT_LENGTH

Error code indicating a missing content length.

Properties:
Name Type Description
MISSING_CONTENT_LENGTH number

MISSING_CONTENT_TYPE

Error code indicating a missing content type.

Properties:
Name Type Description
MISSING_CONTENT_TYPE number

MISSING_OBJECT_ID

Error code indicating an unspecified object id.

Properties:
Name Type Description
MISSING_OBJECT_ID number

MUST_CREATE_USER_THROUGH_SIGNUP

Error code indicating that a user can only be created through signup.

Properties:
Name Type Description
MUST_CREATE_USER_THROUGH_SIGNUP number

NOT_INITIALIZED

You must call Parse.initialize before using the Parse library.

Properties:
Name Type Description
NOT_INITIALIZED number

OBJECT_NOT_FOUND

Error code indicating the specified object doesn't exist.

Properties:
Name Type Description
OBJECT_NOT_FOUND number

OBJECT_TOO_LARGE

Error code indicating that the object is too large.

Properties:
Name Type Description
OBJECT_TOO_LARGE number

OPERATION_FORBIDDEN

Error code indicating that the operation isn't allowed for clients.

Properties:
Name Type Description
OPERATION_FORBIDDEN number

OTHER_CAUSE

Error code indicating some error other than those enumerated here.

Properties:
Name Type Description
OTHER_CAUSE number

PASSWORD_MISSING

Error code indicating that the password is missing or empty.

Properties:
Name Type Description
PASSWORD_MISSING number

PUSH_MISCONFIGURED

Error code indicating that push is misconfigured.

Properties:
Name Type Description
PUSH_MISCONFIGURED number

REQUEST_LIMIT_EXCEEDED

Error code indicating that the application has exceeded its request limit.

Properties:
Name Type Description
REQUEST_LIMIT_EXCEEDED number

SCRIPT_FAILED

Error code indicating that a Cloud Code script failed.

Properties:
Name Type Description
SCRIPT_FAILED number

SESSION_MISSING

Error code indicating that a user object without a valid session could not be altered.

Properties:
Name Type Description
SESSION_MISSING number

TIMEOUT

Error code indicating that the request timed out on the server. Typically this indicates that the request is too expensive to run.

Properties:
Name Type Description
TIMEOUT number

UNSAVED_FILE_ERROR

Error code indicating an unsaved file.

Properties:
Name Type Description
UNSAVED_FILE_ERROR number

UNSUPPORTED_SERVICE

Error code indicating that a service being linked (e.g. Facebook or Twitter) is unsupported.

Properties:
Name Type Description
UNSUPPORTED_SERVICE number

USERNAME_MISSING

Error code indicating that the username is missing or empty.

Properties:
Name Type Description
USERNAME_MISSING number

USERNAME_TAKEN

Error code indicating that the username has already been taken.

Properties:
Name Type Description
USERNAME_TAKEN number

VALIDATION_ERROR

Error code indicating that a Cloud Code validation failed.

Properties:
Name Type Description
VALIDATION_ERROR number

X_DOMAIN_REQUEST

Error code indicating a real error code is unavailable because we had to use an XDomainRequest object to allow CORS requests in Internet Explorer, which strips the body from HTTP responses that have a non-2XX status code.

Properties:
Name Type Description
X_DOMAIN_REQUEST number