ParseError

Parse~ ParseError

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

Constructor

new ParseError(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) 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

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

(static) CACHE_MISS

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

Properties:
Name Type Description
CACHE_MISS number

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

(static) CONNECTION_FAILED

Error code indicating the connection to the Parse servers failed.

Properties:
Name Type Description
CONNECTION_FAILED number

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

(static) DUPLICATE_VALUE

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

Properties:
Name Type Description
DUPLICATE_VALUE number

(static) EMAIL_MISSING

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

Properties:
Name Type Description
EMAIL_MISSING number

(static) EMAIL_NOT_FOUND

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

Properties:
Name Type Description
EMAIL_NOT_FOUND number

(static) EMAIL_TAKEN

Error code indicating that the email has already been taken.

Properties:
Name Type Description
EMAIL_TAKEN number

(static) EXCEEDED_QUOTA

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

Properties:
Name Type Description
EXCEEDED_QUOTA number

(static) FILE_DELETE_ERROR

Error code indicating an error deleting a file.

Properties:
Name Type Description
FILE_DELETE_ERROR number

(static) FILE_DELETE_UNNAMED_ERROR

Error code indicating an error deleting an unnamed file.

Properties:
Name Type Description
FILE_DELETE_UNNAMED_ERROR number

(static) FILE_READ_ERROR

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

Properties:
Name Type Description
FILE_READ_ERROR number

(static) FILE_SAVE_ERROR

Error code indicating an error saving a file.

Properties:
Name Type Description
FILE_SAVE_ERROR number

(static) FILE_TOO_LARGE

Error code indicating a file that was too large.

Properties:
Name Type Description
FILE_TOO_LARGE number

(static) INCORRECT_TYPE

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

Properties:
Name Type Description
INCORRECT_TYPE number

(static) INTERNAL_SERVER_ERROR

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

Properties:
Name Type Description
INTERNAL_SERVER_ERROR number

(static) INVALID_ACL

Error code indicating an invalid ACL was provided.

Properties:
Name Type Description
INVALID_ACL number

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

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

(static) INVALID_CONTENT_LENGTH

Error code indicating an invalid content length.

Properties:
Name Type Description
INVALID_CONTENT_LENGTH number

(static) INVALID_EMAIL_ADDRESS

Error code indicating that the email address was invalid.

Properties:
Name Type Description
INVALID_EMAIL_ADDRESS number

(static) INVALID_EVENT_NAME

Error code indicating an invalid event name.

Properties:
Name Type Description
INVALID_EVENT_NAME number

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

(static) INVALID_IMAGE_DATA

Error code indicating that invalid image data was provided.

Properties:
Name Type Description
INVALID_IMAGE_DATA number

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

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

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

(static) INVALID_NESTED_KEY

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

Properties:
Name Type Description
INVALID_NESTED_KEY number

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

(static) INVALID_PUSH_TIME_ERROR

Error code indicating an invalid push time.

Properties:
Name Type Description
INVALID_PUSH_TIME_ERROR number

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

(static) INVALID_ROLE_NAME

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

Properties:
Name Type Description
INVALID_ROLE_NAME number

(static) INVALID_SCHEMA_OPERATION

Error code indicating an invalid operation occured on schema

Properties:
Name Type Description
INVALID_SCHEMA_OPERATION number

(static) INVALID_SESSION_TOKEN

Error code indicating that the current session token is invalid.

Properties:
Name Type Description
INVALID_SESSION_TOKEN number

(static) INVALID_VALUE

Error code indicating that a field had an invalid value.

Properties:
Name Type Description
INVALID_VALUE number

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

(static) MFA_ERROR

Error code indicating an error enabling or verifying MFA

Properties:
Name Type Description
MFA_ERROR number

(static) MFA_TOKEN_REQUIRED

Error code indicating that a valid MFA token must be provided

Properties:
Name Type Description
MFA_TOKEN_REQUIRED number

(static) MISSING_CONTENT_LENGTH

Error code indicating a missing content length.

Properties:
Name Type Description
MISSING_CONTENT_LENGTH number

(static) MISSING_CONTENT_TYPE

Error code indicating a missing content type.

Properties:
Name Type Description
MISSING_CONTENT_TYPE number

(static) MISSING_OBJECT_ID

Error code indicating an unspecified object id.

Properties:
Name Type Description
MISSING_OBJECT_ID number

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

(static) NOT_INITIALIZED

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

Properties:
Name Type Description
NOT_INITIALIZED number

(static) OBJECT_NOT_FOUND

Error code indicating the specified object doesn't exist.

Properties:
Name Type Description
OBJECT_NOT_FOUND number

(static) OBJECT_TOO_LARGE

Error code indicating that the object is too large.

Properties:
Name Type Description
OBJECT_TOO_LARGE number

(static) OPERATION_FORBIDDEN

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

Properties:
Name Type Description
OPERATION_FORBIDDEN number

(static) OTHER_CAUSE

Error code indicating some error other than those enumerated here.

Properties:
Name Type Description
OTHER_CAUSE number

(static) PASSWORD_MISSING

Error code indicating that the password is missing or empty.

Properties:
Name Type Description
PASSWORD_MISSING number

(static) PUSH_MISCONFIGURED

Error code indicating that push is misconfigured.

Properties:
Name Type Description
PUSH_MISCONFIGURED number

(static) REQUEST_LIMIT_EXCEEDED

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

Properties:
Name Type Description
REQUEST_LIMIT_EXCEEDED number

(static) SCRIPT_FAILED

Error code indicating that a Cloud Code script failed.

Properties:
Name Type Description
SCRIPT_FAILED number

(static) SESSION_MISSING

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

Properties:
Name Type Description
SESSION_MISSING number

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

(static) UNSAVED_FILE_ERROR

Error code indicating an unsaved file.

Properties:
Name Type Description
UNSAVED_FILE_ERROR number

(static) UNSUPPORTED_SERVICE

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

Properties:
Name Type Description
UNSUPPORTED_SERVICE number

(static) USERNAME_MISSING

Error code indicating that the username is missing or empty.

Properties:
Name Type Description
USERNAME_MISSING number

(static) USERNAME_TAKEN

Error code indicating that the username has already been taken.

Properties:
Name Type Description
USERNAME_TAKEN number

(static) VALIDATION_ERROR

Error code indicating that a Cloud Code validation failed.

Properties:
Name Type Description
VALIDATION_ERROR number

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