PFErrorCode

enum PFErrorCode : NSInteger {}

PFErrorCode enum contains all custom error codes that are used as code for NSError for callbacks on all classes.

These codes are used when domain of NSError that you receive is set to PFParseErrorDomain.

  • Internal server error. No information available.

    Declaration

    Objective-C

    kPFErrorInternalServer = 1
  • The connection to the Parse servers failed.

    Declaration

    Objective-C

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

    Declaration

    Objective-C

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

    Declaration

    Objective-C

    kPFErrorInvalidQuery = 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

    Objective-C

    kPFErrorInvalidClassName = 103
  • Missing object id.

    Declaration

    Objective-C

    kPFErrorMissingObjectId = 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

    Objective-C

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

    Declaration

    Objective-C

    kPFErrorInvalidPointer = 106
  • Malformed json object. A json dictionary is expected.

    Declaration

    Objective-C

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

    Declaration

    Objective-C

    kPFErrorCommandUnavailable = 108
  • Field set to incorrect type.

    Declaration

    Objective-C

    kPFErrorIncorrectType = 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

    Objective-C

    kPFErrorInvalidChannelName = 112
  • Invalid device token.

    Declaration

    Objective-C

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

    Declaration

    Objective-C

    kPFErrorPushMisconfigured = 115
  • The object is too large.

    Declaration

    Objective-C

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

    Declaration

    Objective-C

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

    Declaration

    Objective-C

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

    Declaration

    Objective-C

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

    Declaration

    Objective-C

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

    Declaration

    Objective-C

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

    Declaration

    Objective-C

    kPFErrorTimeout = 124
  • The email address was invalid.

    Declaration

    Objective-C

    kPFErrorInvalidEmailAddress = 125
  • A unique field was given a value that is already taken.

    Declaration

    Objective-C

    kPFErrorDuplicateValue = 137
  • Role’s name is invalid.

    Declaration

    Objective-C

    kPFErrorInvalidRoleName = 139
  • Exceeded an application quota. Upgrade to resolve.

    Declaration

    Objective-C

    kPFErrorExceededQuota = 140
  • Cloud Code script had an error.

    Declaration

    Objective-C

    kPFScriptError = 141
  • Cloud Code validation failed.

    Declaration

    Objective-C

    kPFValidationError = 142
  • Product purchase receipt is missing.

    Declaration

    Objective-C

    kPFErrorReceiptMissing = 143
  • Product purchase receipt is invalid.

    Declaration

    Objective-C

    kPFErrorInvalidPurchaseReceipt = 144
  • Payment is disabled on this device.

    Declaration

    Objective-C

    kPFErrorPaymentDisabled = 145
  • The product identifier is invalid.

    Declaration

    Objective-C

    kPFErrorInvalidProductIdentifier = 146
  • The product is not found in the App Store.

    Declaration

    Objective-C

    kPFErrorProductNotFoundInAppStore = 147
  • The Apple server response is not valid.

    Declaration

    Objective-C

    kPFErrorInvalidServerResponse = 148
  • Product fails to download due to file system error.

    Declaration

    Objective-C

    kPFErrorProductDownloadFileSystemFailure = 149
  • Fail to convert data to image.

    Declaration

    Objective-C

    kPFErrorInvalidImageData = 150
  • Unsaved file.

    Declaration

    Objective-C

    kPFErrorUnsavedFile = 151
  • Fail to delete file.

    Declaration

    Objective-C

    kPFErrorFileDeleteFailure = 153
  • Application has exceeded its request limit.

    Declaration

    Objective-C

    kPFErrorRequestLimitExceeded = 155
  • Invalid event name.

    Declaration

    Objective-C

    kPFErrorInvalidEventName = 160
  • Username is missing or empty.

    Declaration

    Objective-C

    kPFErrorUsernameMissing = 200
  • Password is missing or empty.

    Declaration

    Objective-C

    kPFErrorUserPasswordMissing = 201
  • Username has already been taken.

    Declaration

    Objective-C

    kPFErrorUsernameTaken = 202
  • Email has already been taken.

    Declaration

    Objective-C

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

    Declaration

    Objective-C

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

    Declaration

    Objective-C

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

    Declaration

    Objective-C

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

    Declaration

    Objective-C

    kPFErrorUserCanOnlyBeCreatedThroughSignUp = 207
  • An existing Facebook account already linked to another user.

    Declaration

    Objective-C

    kPFErrorFacebookAccountAlreadyLinked = 208
  • An existing account already linked to another user.

    Declaration

    Objective-C

    kPFErrorAccountAlreadyLinked = 208
  • Error code indicating that the current session token is invalid.

    Declaration

    Objective-C

    kPFErrorInvalidSessionToken = 209
  • Error code indicating that the current session token is invalid.

    Declaration

    Objective-C

    kPFErrorUserIdMismatch = 209
  • Facebook id missing from request.

    Declaration

    Objective-C

    kPFErrorFacebookIdMissing = 250
  • Linked id missing from request.

    Declaration

    Objective-C

    kPFErrorLinkedIdMissing = 250
  • Invalid Facebook session.

    Declaration

    Objective-C

    kPFErrorFacebookInvalidSession = 251
  • Invalid linked session.

    Declaration

    Objective-C

    kPFErrorInvalidLinkedSession = 251