Code

public enum Code : Int, Swift.Error, Codable

ParseError.Code enum contains all custom error codes that are used as code for Error for callbacks on all classes.

  • Internal SDK Error. No information available

    Declaration

    Swift

    case unknownError = -1
  • Internal server error. No information available.

    Declaration

    Swift

    case internalServer = 1
  • The connection to the Parse servers failed.

    Declaration

    Swift

    case connectionFailed = 100
  • Object doesn’t exist, or has an incorrect password.

    Declaration

    Swift

    case objectNotFound = 101
  • You tried to find values matching a datatype that doesn’t support exact database matching, like an array or a dictionary.

    Declaration

    Swift

    case invalidQuery = 102
  • Missing or invalid classname. Classnames are case-sensitive. They must start with a letter, and a-zA-Z0-9_ are the only valid characters.

    Declaration

    Swift

    case invalidClassName = 103
  • Missing object id.

    Declaration

    Swift

    case missingObjectId = 104
  • Invalid key name. Keys are case-sensitive. They must start with a letter, and a-zA-Z0-9_ are the only valid characters.

    Declaration

    Swift

    case invalidKeyName = 105
  • Malformed pointer. Pointers must be arrays of a classname and an object id.

    Declaration

    Swift

    case invalidPointer = 106
  • Malformed json object. A json dictionary is expected.

    Declaration

    Swift

    case invalidJSON = 107
  • Tried to access a feature only available internally.

    Declaration

    Swift

    case commandUnavailable = 108
  • Field set to incorrect type.

    Declaration

    Swift

    case incorrectType = 111
  • 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.

    Declaration

    Swift

    case invalidChannelName = 112
  • Invalid device token.

    Declaration

    Swift

    case invalidDeviceToken = 114
  • Push is misconfigured. See details to find out how.

    Declaration

    Swift

    case pushMisconfigured = 115
  • The object is too large.

    Declaration

    Swift

    case objectTooLarge = 116
  • That operation isn’t allowed for clients.

    Declaration

    Swift

    case operationForbidden = 119
  • The results were not found in the cache.

    Declaration

    Swift

    case cacheMiss = 120
  • Keys in NSDictionary values may not include $ or ..

    Declaration

    Swift

    case invalidNestedKey = 121
  • Invalid file name. A file name can contain only a-zA-Z0-9_. characters and should be between 1 and 36 characters.

    Declaration

    Swift

    case invalidFileName = 122
  • Invalid ACL. An ACL with an invalid format was saved. This should not happen if you use ACL.

    Declaration

    Swift

    case invalidACL = 123
  • The request timed out on the server. Typically this indicates the request is too expensive.

    Declaration

    Swift

    case timeout = 124
  • The email address was invalid.

    Declaration

    Swift

    case invalidEmailAddress = 125
  • Missing content type.

    Declaration

    Swift

    case missingContentType = 126
  • Missing content length.

    Declaration

    Swift

    case missingContentLength = 127
  • Invalid content length.

    Declaration

    Swift

    case invalidContentLength = 128
  • File was too large.

    Declaration

    Swift

    case fileTooLarge = 129
  • Failure saving a file.

    Declaration

    Swift

    case fileSaveFailure = 130
  • A unique field was given a value that is already taken.

    Declaration

    Swift

    case duplicateValue = 137
  • Role’s name is invalid.

    Declaration

    Swift

    case invalidRoleName = 139
  • Exceeded an application quota. Upgrade to resolve.

    Declaration

    Swift

    case exceededQuota = 140
  • Cloud Code script had an error.

    Declaration

    Swift

    case scriptFailed = 141
  • Cloud Code validation failed.

    Declaration

    Swift

    case validationFailed = 142
  • Fail to convert data to image.

    Declaration

    Swift

    case invalidImageData = 143
  • Unsaved file failure.

    Declaration

    Swift

    case unsavedFileFailure = 151
  • An invalid push time.

    Declaration

    Swift

    case invalidPushTime = 152
  • Fail to delete file.

    Declaration

    Swift

    case fileDeleteFailure = 153
  • Fail to delete an unnamed file.

    Declaration

    Swift

    case fileDeleteUnnamedFailure = 161
  • Application has exceeded its request limit.

    Declaration

    Swift

    case requestLimitExceeded = 155
  • The request was a duplicate and has been discarded due to idempotency rules.

    Declaration

    Swift

    case duplicateRequest = 159
  • Invalid event name.

    Declaration

    Swift

    case invalidEventName = 160
  • Invalid value.

    Declaration

    Swift

    case invalidValue = 162
  • Username is missing or empty.

    Declaration

    Swift

    case usernameMissing = 200
  • Password is missing or empty.

    Declaration

    Swift

    case userPasswordMissing = 201
  • Username has already been taken.

    Declaration

    Swift

    case usernameTaken = 202
  • Email has already been taken.

    Declaration

    Swift

    case userEmailTaken = 203
  • The email is missing, and must be specified.

    Declaration

    Swift

    case userEmailMissing = 204
  • A user with the specified email was not found.

    Declaration

    Swift

    case userWithEmailNotFound = 205
  • The user cannot be altered by a client without the session.

    Declaration

    Swift

    case userCannotBeAlteredWithoutSession = 206
  • Users can only be created through sign up.

    Declaration

    Swift

    case userCanOnlyBeCreatedThroughSignUp = 207
  • An existing account already linked to another user.

    Declaration

    Swift

    case accountAlreadyLinked = 208
  • The current session token is invalid.

    Declaration

    Swift

    case invalidSessionToken = 209
  • Error enabling or verifying MFA.

    Declaration

    Swift

    case mfaError = 210
  • A valid MFA token must be provided.

    Declaration

    Swift

    case mfaTokenRequired = 211
  • Linked id missing from request.

    Declaration

    Swift

    case linkedIdMissing = 250
  • Invalid linked session.

    Declaration

    Swift

    case invalidLinkedSession = 251
  • Error code indicating that a service being linked (e.g. Facebook or Twitter) is unsupported.

    Declaration

    Swift

    case unsupportedService = 252
  • Error code indicating an invalid operation occured on schema

    Declaration

    Swift

    case invalidSchemaOperation = 255
  • 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.

    Declaration

    Swift

    case aggregateError = 600
  • Error code indicating the client was unable to read an input file.

    Declaration

    Swift

    case fileReadError = 601
  • 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.

    Declaration

    Swift

    case xDomainRequest = 602