PFErrorCode

enum PFErrorCode {}

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

    Swift

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

    Declaration

    Objective-C

    kPFErrorConnectionFailed = 100

    Swift

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

    Declaration

    Objective-C

    kPFErrorObjectNotFound = 101

    Swift

    case errorObjectNotFound = 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

    Swift

    case errorInvalidQuery = 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

    Swift

    case errorInvalidClassName = 103
  • Missing object id.

    Declaration

    Objective-C

    kPFErrorMissingObjectId = 104

    Swift

    case errorMissingObjectId = 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

    Swift

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

    Declaration

    Objective-C

    kPFErrorInvalidPointer = 106

    Swift

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

    Declaration

    Objective-C

    kPFErrorInvalidJSON = 107

    Swift

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

    Declaration

    Objective-C

    kPFErrorCommandUnavailable = 108

    Swift

    case errorCommandUnavailable = 108
  • Field set to incorrect type.

    Declaration

    Objective-C

    kPFErrorIncorrectType = 111

    Swift

    case errorIncorrectType = 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

    Swift

    case errorInvalidChannelName = 112
  • Invalid device token.

    Declaration

    Objective-C

    kPFErrorInvalidDeviceToken = 114

    Swift

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

    Declaration

    Objective-C

    kPFErrorPushMisconfigured = 115

    Swift

    case errorPushMisconfigured = 115
  • The object is too large.

    Declaration

    Objective-C

    kPFErrorObjectTooLarge = 116

    Swift

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

    Declaration

    Objective-C

    kPFErrorOperationForbidden = 119

    Swift

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

    Declaration

    Objective-C

    kPFErrorCacheMiss = 120

    Swift

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

    Declaration

    Objective-C

    kPFErrorInvalidNestedKey = 121

    Swift

    case errorInvalidNestedKey = 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

    Swift

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

    Declaration

    Objective-C

    kPFErrorInvalidACL = 123

    Swift

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

    Declaration

    Objective-C

    kPFErrorTimeout = 124

    Swift

    case errorTimeout = 124
  • The email address was invalid.

    Declaration

    Objective-C

    kPFErrorInvalidEmailAddress = 125

    Swift

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

    Declaration

    Objective-C

    kPFErrorDuplicateValue = 137

    Swift

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

    Declaration

    Objective-C

    kPFErrorInvalidRoleName = 139

    Swift

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

    Declaration

    Objective-C

    kPFErrorExceededQuota = 140

    Swift

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

    Declaration

    Objective-C

    kPFScriptError = 141

    Swift

    case scriptError = 141
  • Cloud Code validation failed.

    Declaration

    Objective-C

    kPFValidationError = 142

    Swift

    case validationError = 142
  • Product purchase receipt is missing.

    Declaration

    Objective-C

    kPFErrorReceiptMissing = 143

    Swift

    case errorReceiptMissing = 143
  • Product purchase receipt is invalid.

    Declaration

    Objective-C

    kPFErrorInvalidPurchaseReceipt = 144

    Swift

    case errorInvalidPurchaseReceipt = 144
  • Payment is disabled on this device.

    Declaration

    Objective-C

    kPFErrorPaymentDisabled = 145

    Swift

    case errorPaymentDisabled = 145
  • The product identifier is invalid.

    Declaration

    Objective-C

    kPFErrorInvalidProductIdentifier = 146

    Swift

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

    Declaration

    Objective-C

    kPFErrorProductNotFoundInAppStore = 147

    Swift

    case errorProductNotFoundInAppStore = 147
  • The Apple server response is not valid.

    Declaration

    Objective-C

    kPFErrorInvalidServerResponse = 148

    Swift

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

    Declaration

    Objective-C

    kPFErrorProductDownloadFileSystemFailure = 149

    Swift

    case errorProductDownloadFileSystemFailure = 149
  • Fail to convert data to image.

    Declaration

    Objective-C

    kPFErrorInvalidImageData = 150

    Swift

    case errorInvalidImageData = 150
  • Unsaved file.

    Declaration

    Objective-C

    kPFErrorUnsavedFile = 151

    Swift

    case errorUnsavedFile = 151
  • Fail to delete file.

    Declaration

    Objective-C

    kPFErrorFileDeleteFailure = 153

    Swift

    case errorFileDeleteFailure = 153
  • Application has exceeded its request limit.

    Declaration

    Objective-C

    kPFErrorRequestLimitExceeded = 155

    Swift

    case errorRequestLimitExceeded = 155
  • Invalid event name.

    Declaration

    Objective-C

    kPFErrorInvalidEventName = 160

    Swift

    case errorInvalidEventName = 160
  • Username is missing or empty.

    Declaration

    Objective-C

    kPFErrorUsernameMissing = 200

    Swift

    case errorUsernameMissing = 200
  • Password is missing or empty.

    Declaration

    Objective-C

    kPFErrorUserPasswordMissing = 201

    Swift

    case errorUserPasswordMissing = 201
  • Username has already been taken.

    Declaration

    Objective-C

    kPFErrorUsernameTaken = 202

    Swift

    case errorUsernameTaken = 202
  • Email has already been taken.

    Declaration

    Objective-C

    kPFErrorUserEmailTaken = 203

    Swift

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

    Declaration

    Objective-C

    kPFErrorUserEmailMissing = 204

    Swift

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

    Declaration

    Objective-C

    kPFErrorUserWithEmailNotFound = 205

    Swift

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

    Declaration

    Objective-C

    kPFErrorUserCannotBeAlteredWithoutSession = 206

    Swift

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

    Declaration

    Objective-C

    kPFErrorUserCanOnlyBeCreatedThroughSignUp = 207

    Swift

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

    Declaration

    Objective-C

    kPFErrorFacebookAccountAlreadyLinked = 208

    Swift

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

    Declaration

    Objective-C

    kPFErrorAccountAlreadyLinked = 208

    Swift

    static var errorAccountAlreadyLinked: PFErrorCode { get }
  • Error code indicating that the current session token is invalid.

    Declaration

    Objective-C

    kPFErrorInvalidSessionToken = 209

    Swift

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

    Declaration

    Objective-C

    kPFErrorUserIdMismatch = 209

    Swift

    static var errorUserIdMismatch: PFErrorCode { get }
  • Facebook id missing from request.

    Declaration

    Objective-C

    kPFErrorFacebookIdMissing = 250

    Swift

    case errorFacebookIdMissing = 250
  • Linked id missing from request.

    Declaration

    Objective-C

    kPFErrorLinkedIdMissing = 250

    Swift

    static var errorLinkedIdMissing: PFErrorCode { get }
  • Invalid Facebook session.

    Declaration

    Objective-C

    kPFErrorFacebookInvalidSession = 251

    Swift

    case errorFacebookInvalidSession = 251
  • Invalid linked session.

    Declaration

    Objective-C

    kPFErrorInvalidLinkedSession = 251

    Swift

    static var errorInvalidLinkedSession: PFErrorCode { get }