Error

Parse. Error

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

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

(static, readonly) 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

(static, readonly) 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

(static, readonly) CACHE_MISS

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

Properties:
Name Type Description
CACHE_MISS

(static, readonly) 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

(static, readonly) CONNECTION_FAILED

Error code indicating the connection to the Parse servers failed.

Properties:
Name Type Description
CONNECTION_FAILED

(static, readonly) DUPLICATE_VALUE

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

Properties:
Name Type Description
DUPLICATE_VALUE

(static, readonly) EMAIL_MISSING

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

Properties:
Name Type Description
EMAIL_MISSING

(static, readonly) EMAIL_NOT_FOUND

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

Properties:
Name Type Description
EMAIL_NOT_FOUND

(static, readonly) EMAIL_TAKEN

Error code indicating that the email has already been taken.

Properties:
Name Type Description
EMAIL_TAKEN

(static, readonly) EXCEEDED_QUOTA

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

Properties:
Name Type Description
EXCEEDED_QUOTA

(static, readonly) FILE_DELETE_ERROR

Error code indicating an error deleting a file.

Properties:
Name Type Description
FILE_DELETE_ERROR

(static, readonly) FILE_READ_ERROR

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

Properties:
Name Type Description
FILE_READ_ERROR

(static, readonly) FILE_SAVE_ERROR

Error code indicating an error saving a file.

Properties:
Name Type Description
FILE_SAVE_ERROR

(static, readonly) FILE_TOO_LARGE

Error code indicating a file that was too large.

Properties:
Name Type Description
FILE_TOO_LARGE

(static, readonly) INCORRECT_TYPE

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

Properties:
Name Type Description
INCORRECT_TYPE

(static, readonly) INTERNAL_SERVER_ERROR

Error code indicating that something has gone wrong with the server. If you get this error code, it is Parse's fault. Contact us at https://parse.com/help

Properties:
Name Type Description
INTERNAL_SERVER_ERROR

(static, readonly) INVALID_ACL

Error code indicating an invalid ACL was provided.

Properties:
Name Type Description
INVALID_ACL

(static, readonly) 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

(static, readonly) 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

(static, readonly) INVALID_CONTENT_LENGTH

Error code indicating an invalid content length.

Properties:
Name Type Description
INVALID_CONTENT_LENGTH

(static, readonly) INVALID_EMAIL_ADDRESS

Error code indicating that the email address was invalid.

Properties:
Name Type Description
INVALID_EMAIL_ADDRESS

(static, readonly) INVALID_EVENT_NAME

Error code indicating an invalid event name.

Properties:
Name Type Description
INVALID_EVENT_NAME

(static, readonly) 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

(static, readonly) INVALID_IMAGE_DATA

Error code indicating that invalid image data was provided.

Properties:
Name Type Description
INVALID_IMAGE_DATA

(static, readonly) 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

(static, readonly) 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

(static, readonly) 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

(static, readonly) INVALID_NESTED_KEY

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

Properties:
Name Type Description
INVALID_NESTED_KEY

(static, readonly) 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

(static, readonly) INVALID_PUSH_TIME_ERROR

Error code indicating an invalid push time.

Properties:
Name Type Description
INVALID_PUSH_TIME_ERROR

(static, readonly) 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

(static, readonly) INVALID_ROLE_NAME

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

Properties:
Name Type Description
INVALID_ROLE_NAME

(static, readonly) INVALID_SESSION_TOKEN

Error code indicating that the current session token is invalid.

Properties:
Name Type Description
INVALID_SESSION_TOKEN

(static, readonly) 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

(static, readonly) MISSING_CONTENT_LENGTH

Error code indicating a missing content length.

Properties:
Name Type Description
MISSING_CONTENT_LENGTH

(static, readonly) MISSING_CONTENT_TYPE

Error code indicating a missing content type.

Properties:
Name Type Description
MISSING_CONTENT_TYPE

(static, readonly) MISSING_OBJECT_ID

Error code indicating an unspecified object id.

Properties:
Name Type Description
MISSING_OBJECT_ID

(static, readonly) 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

(static, readonly) NOT_INITIALIZED

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

Properties:
Name Type Description
NOT_INITIALIZED

(static, readonly) OBJECT_NOT_FOUND

Error code indicating the specified object doesn't exist.

Properties:
Name Type Description
OBJECT_NOT_FOUND

(static, readonly) OBJECT_TOO_LARGE

Error code indicating that the object is too large.

Properties:
Name Type Description
OBJECT_TOO_LARGE

(static, readonly) OPERATION_FORBIDDEN

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

Properties:
Name Type Description
OPERATION_FORBIDDEN

(static, readonly) OTHER_CAUSE

Error code indicating some error other than those enumerated here.

Properties:
Name Type Description
OTHER_CAUSE

(static, readonly) PASSWORD_MISSING

Error code indicating that the password is missing or empty.

Properties:
Name Type Description
PASSWORD_MISSING

(static, readonly) PUSH_MISCONFIGURED

Error code indicating that push is misconfigured.

Properties:
Name Type Description
PUSH_MISCONFIGURED

(static, readonly) REQUEST_LIMIT_EXCEEDED

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

Properties:
Name Type Description
REQUEST_LIMIT_EXCEEDED

(static, readonly) SCRIPT_FAILED

Error code indicating that a Cloud Code script failed.

Properties:
Name Type Description
SCRIPT_FAILED

(static, readonly) SESSION_MISSING

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

Properties:
Name Type Description
SESSION_MISSING

(static, readonly) 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

(static, readonly) UNSAVED_FILE_ERROR

Error code indicating an unsaved file.

Properties:
Name Type Description
UNSAVED_FILE_ERROR

(static, readonly) UNSUPPORTED_SERVICE

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

Properties:
Name Type Description
UNSUPPORTED_SERVICE

(static, readonly) USERNAME_MISSING

Error code indicating that the username is missing or empty.

Properties:
Name Type Description
USERNAME_MISSING

(static, readonly) USERNAME_TAKEN

Error code indicating that the username has already been taken.

Properties:
Name Type Description
USERNAME_TAKEN

(static, readonly) VALIDATION_ERROR

Error code indicating that a Cloud Code validation failed.

Properties:
Name Type Description
VALIDATION_ERROR

(static, readonly) 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