PFErrorCode
Objective-C
enum PFErrorCode : NSInteger {}
Swift
enum PFErrorCode : Int, @unchecked Sendable
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 = 1Swift
case errorInternalServer = 1 -
The connection to the Parse servers failed.
Declaration
Objective-C
kPFErrorConnectionFailed = 100Swift
case errorConnectionFailed = 100 -
Object doesn’t exist, or has an incorrect password.
Declaration
Objective-C
kPFErrorObjectNotFound = 101Swift
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 = 102Swift
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 = 103Swift
case errorInvalidClassName = 103 -
Missing object id.
Declaration
Objective-C
kPFErrorMissingObjectId = 104Swift
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 = 105Swift
case errorInvalidKeyName = 105 -
Malformed pointer. Pointers must be arrays of a classname and an object id.
Declaration
Objective-C
kPFErrorInvalidPointer = 106Swift
case errorInvalidPointer = 106 -
Malformed json object. A json dictionary is expected.
Declaration
Objective-C
kPFErrorInvalidJSON = 107Swift
case errorInvalidJSON = 107 -
Tried to access a feature only available internally.
Declaration
Objective-C
kPFErrorCommandUnavailable = 108Swift
case errorCommandUnavailable = 108 -
Field set to incorrect type.
Declaration
Objective-C
kPFErrorIncorrectType = 111Swift
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 = 112Swift
case errorInvalidChannelName = 112 -
Invalid device token.
Declaration
Objective-C
kPFErrorInvalidDeviceToken = 114Swift
case errorInvalidDeviceToken = 114 -
Push is misconfigured. See details to find out how.
Declaration
Objective-C
kPFErrorPushMisconfigured = 115Swift
case errorPushMisconfigured = 115 -
The object is too large.
Declaration
Objective-C
kPFErrorObjectTooLarge = 116Swift
case errorObjectTooLarge = 116 -
That operation isn’t allowed for clients.
Declaration
Objective-C
kPFErrorOperationForbidden = 119Swift
case errorOperationForbidden = 119 -
The results were not found in the cache.
Declaration
Objective-C
kPFErrorCacheMiss = 120Swift
case errorCacheMiss = 120 -
Keys in
NSDictionaryvalues may not include$or..Declaration
Objective-C
kPFErrorInvalidNestedKey = 121Swift
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 = 122Swift
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 = 123Swift
case errorInvalidACL = 123 -
The request timed out on the server. Typically this indicates the request is too expensive.
Declaration
Objective-C
kPFErrorTimeout = 124Swift
case errorTimeout = 124 -
The email address was invalid.
Declaration
Objective-C
kPFErrorInvalidEmailAddress = 125Swift
case errorInvalidEmailAddress = 125 -
A unique field was given a value that is already taken.
Declaration
Objective-C
kPFErrorDuplicateValue = 137Swift
case errorDuplicateValue = 137 -
Role’s name is invalid.
Declaration
Objective-C
kPFErrorInvalidRoleName = 139Swift
case errorInvalidRoleName = 139 -
Exceeded an application quota. Upgrade to resolve.
Declaration
Objective-C
kPFErrorExceededQuota = 140Swift
case errorExceededQuota = 140 -
Cloud Code script had an error.
Declaration
Objective-C
kPFScriptError = 141Swift
case scriptError = 141 -
Cloud Code validation failed.
Declaration
Objective-C
kPFValidationError = 142Swift
case validationError = 142 -
Product purchase receipt is missing.
Declaration
Objective-C
kPFErrorReceiptMissing = 143Swift
case errorReceiptMissing = 143 -
Product purchase receipt is invalid.
Declaration
Objective-C
kPFErrorInvalidPurchaseReceipt = 144Swift
case errorInvalidPurchaseReceipt = 144 -
Payment is disabled on this device.
Declaration
Objective-C
kPFErrorPaymentDisabled = 145Swift
case errorPaymentDisabled = 145 -
The product identifier is invalid.
Declaration
Objective-C
kPFErrorInvalidProductIdentifier = 146Swift
case errorInvalidProductIdentifier = 146 -
The product is not found in the App Store.
Declaration
Objective-C
kPFErrorProductNotFoundInAppStore = 147Swift
case errorProductNotFoundInAppStore = 147 -
The Apple server response is not valid.
Declaration
Objective-C
kPFErrorInvalidServerResponse = 148Swift
case errorInvalidServerResponse = 148 -
Product fails to download due to file system error.
Declaration
Objective-C
kPFErrorProductDownloadFileSystemFailure = 149Swift
case errorProductDownloadFileSystemFailure = 149 -
Fail to convert data to image.
Declaration
Objective-C
kPFErrorInvalidImageData = 150Swift
case errorInvalidImageData = 150 -
Unsaved file.
Declaration
Objective-C
kPFErrorUnsavedFile = 151Swift
case errorUnsavedFile = 151 -
Fail to delete file.
Declaration
Objective-C
kPFErrorFileDeleteFailure = 153Swift
case errorFileDeleteFailure = 153 -
Application has exceeded its request limit.
Declaration
Objective-C
kPFErrorRequestLimitExceeded = 155Swift
case errorRequestLimitExceeded = 155 -
Request was a duplicate and has been discarded due to idempotency rules.
Declaration
Objective-C
kPFErrorDuplicateRequest = 159Swift
case errorDuplicateRequest = 159 -
Invalid event name.
Declaration
Objective-C
kPFErrorInvalidEventName = 160Swift
case errorInvalidEventName = 160 -
Username is missing or empty.
Declaration
Objective-C
kPFErrorUsernameMissing = 200Swift
case errorUsernameMissing = 200 -
Password is missing or empty.
Declaration
Objective-C
kPFErrorUserPasswordMissing = 201Swift
case errorUserPasswordMissing = 201 -
Username has already been taken.
Declaration
Objective-C
kPFErrorUsernameTaken = 202Swift
case errorUsernameTaken = 202 -
Email has already been taken.
Declaration
Objective-C
kPFErrorUserEmailTaken = 203Swift
case errorUserEmailTaken = 203 -
The email is missing, and must be specified.
Declaration
Objective-C
kPFErrorUserEmailMissing = 204Swift
case errorUserEmailMissing = 204 -
A user with the specified email was not found.
Declaration
Objective-C
kPFErrorUserWithEmailNotFound = 205Swift
case errorUserWithEmailNotFound = 205 -
The user cannot be altered by a client without the session.
Declaration
Objective-C
kPFErrorUserCannotBeAlteredWithoutSession = 206Swift
case errorUserCannotBeAlteredWithoutSession = 206 -
Users can only be created through sign up.
Declaration
Objective-C
kPFErrorUserCanOnlyBeCreatedThroughSignUp = 207Swift
case errorUserCanOnlyBeCreatedThroughSignUp = 207 -
An existing account already linked to another user.
Declaration
Objective-C
kPFErrorAccountAlreadyLinked = 208Swift
case errorAccountAlreadyLinked = 208 -
Error code indicating that the current session token is invalid.
Declaration
Objective-C
kPFErrorInvalidSessionToken = 209Swift
case errorInvalidSessionToken = 209 -
Error code indicating that the current session token is invalid.
Declaration
Objective-C
kPFErrorUserIdMismatch = 209Swift
static var errorUserIdMismatch: PFErrorCode { get } -
Linked id missing from request.
Declaration
Objective-C
kPFErrorLinkedIdMissing = 250Swift
case errorLinkedIdMissing = 250 -
Invalid linked session.
Declaration
Objective-C
kPFErrorInvalidLinkedSession = 251Swift
case errorInvalidLinkedSession = 251
View on GitHub
Install in Dash