# Error

## AV. Error

#### new Error()

Source:
  - error.js, line 3

### Members

#### (static, constant) ACCOUNT_ALREADY_LINKED

Source:
  - error.js, line 309

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

#### (static, constant) CACHE_MISS

Source:
  - error.js, line 134

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

#### (static, constant) COMMAND_UNAVAILABLE

Source:
  - error.js, line 90

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

#### (static, constant) CONNECTION_FAILED

Source:
  - error.js, line 34

Error code indicating the connection to the AV servers failed.

#### (static, constant) DUPLICATE_VALUE

Source:
  - error.js, line 211

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

#### (static, constant) EMAIL_MISSING

Source:
  - error.js, line 283

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

#### (static, constant) EMAIL_NOT_FOUND

Source:
  - error.js, line 289

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

#### (static, constant) EMAIL_TAKEN

Source:
  - error.js, line 277

Error code indicating that the email has already been taken.

#### (static, constant) EXCEEDED_QUOTA

Source:
  - error.js, line 224

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

#### (static, constant) FILE_DELETE_ERROR

Source:
  - error.js, line 204

Error code indicating an error deleting a file.

#### (static, constant) FILE_SAVE_ERROR

Source:
  - error.js, line 198

Error code indicating an error saving a file.

#### (static, constant) FILE_TOO_LARGE

Source:
  - error.js, line 192

Error code indicating a file that was too large.

#### (static, constant) INCORRECT_TYPE

Source:
  - error.js, line 102

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

#### (static, constant) INTERNAL_SERVER_ERROR

Source:
  - error.js, line 28

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

#### (static, constant) INVALID_ACL

Source:
  - error.js, line 155

Error code indicating an invalid ACL was provided.

#### (static, constant) INVALID_CHANNEL_NAME

Source:
  - error.js, line 110

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.

#### (static, constant) INVALID_CLASS_NAME

Source:
  - error.js, line 55

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.

#### (static, constant) INVALID_CONTENT_LENGTH

Source:
  - error.js, line 186

Error code indicating an invalid content length.

#### (static, constant) INVALID_EMAIL_ADDRESS

Source:
  - error.js, line 168

Error code indicating that the email address was invalid.

#### (static, constant) INVALID_FILE_NAME

Source:
  - error.js, line 149

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

#### (static, constant) INVALID_IMAGE_DATA

Source:
  - error.js, line 242

Error code indicating that invalid image data was provided.

#### (static, constant) INVALID_JSON

Source:
  - error.js, line 83

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.

#### (static, constant) INVALID_KEY_NAME

Source:
  - error.js, line 68

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.

#### (static, constant) INVALID_LINKED_SESSION

Source:
  - error.js, line 323

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

#### (static, constant) INVALID_NESTED_KEY

Source:
  - error.js, line 141

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

#### (static, constant) INVALID_POINTER

Source:
  - error.js, line 75

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

#### (static) INVALID_PUSH_TIME_ERROR

Source:
  - error.js, line 253

Error code indicating an invalid push time.

#### (static, constant) INVALID_QUERY

Source:
  - error.js, line 47

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

#### (static, constant) INVALID_ROLE_NAME

Source:
  - error.js, line 217

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

#### (static, constant) LINKED_ID_MISSING

Source:
  - error.js, line 316

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

#### (static, constant) MISSING_CONTENT_LENGTH

Source:
  - error.js, line 180

Error code indicating a missing content length.

#### (static, constant) MISSING_CONTENT_TYPE

Source:
  - error.js, line 174

Error code indicating a missing content type.

#### (static, constant) MISSING_OBJECT_ID

Source:
  - error.js, line 61

Error code indicating an unspecified object id.

#### (static, constant) MUST_CREATE_USER_THROUGH_SIGNUP

Source:
  - error.js, line 302

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

#### (static, constant) NOT_INITIALIZED

Source:
  - error.js, line 96

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

#### (static, constant) OBJECT_NOT_FOUND

Source:
  - error.js, line 40

Error code indicating the specified object doesn't exist.

#### (static, constant) OBJECT_TOO_LARGE

Source:
  - error.js, line 122

Error code indicating that the object is too large.

#### (static, constant) OPERATION_FORBIDDEN

Source:
  - error.js, line 128

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

#### (static, constant) OTHER_CAUSE

Source:
  - error.js, line 20

Error code indicating some error other than those enumerated here.

#### (static, constant) PASSWORD_MISSING

Source:
  - error.js, line 265

Error code indicating that the password is missing or empty.

#### (static, constant) PUSH_MISCONFIGURED

Source:
  - error.js, line 116

Error code indicating that push is misconfigured.

#### (static, constant) SCRIPT_FAILED

Source:
  - error.js, line 230

Error code indicating that a Cloud Code script failed.

#### (static, constant) SESSION_MISSING

Source:
  - error.js, line 296

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

#### (static, constant) TIMEOUT

Source:
  - error.js, line 162

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

#### (static, constant) UNSAVED_FILE_ERROR

Source:
  - error.js, line 248

Error code indicating an unsaved file.

#### (static, constant) UNSUPPORTED_SERVICE

Source:
  - error.js, line 330

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

#### (static, constant) USERNAME_MISSING

Source:
  - error.js, line 259

Error code indicating that the username is missing or empty.

#### (static, constant) USERNAME_TAKEN

Source:
  - error.js, line 271

Error code indicating that the username has already been taken.

#### (static, constant) VALIDATION_ERROR

Source:
  - error.js, line 236

Error code indicating that a Cloud Code validation failed.

#### (static, constant) X_DOMAIN_REQUEST

Source:
  - error.js, line 338

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.