Documentation ¶
Index ¶
Constants ¶
const AccountAlreadyLinked = 208
AccountAlreadyLinked ... Error code indicating that an an account being linked is already linked to another user.
const AggregateError = 600
AggregateError ... 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.
const AnonymousSigninDisabled = 252
AnonymousSigninDisabled ... Anonymous users are not supported for this application.
const AppNameInvalid = 256
AppNameInvalid ... App name is invalid.
const BadAnonymousID = 251
BadAnonymousID ... Anonymous id is not a valid lowercase UUID.
const CacheMiss = 120
CacheMiss ... Error code indicating the result was not found in the cache.
const ChangedImmutableFieldError = 136
ChangedImmutableFieldError ... An immutable field was changed.
const ClassNotEmpty = 255
ClassNotEmpty ... Class is not empty and cannot be dropped.
const ClientDisconnected = 4
ClientDisconnected ... Connection failure.
const ClientPushDisabled = 115
ClientPushDisabled ... Client-initiated push is not enabled.
const ClientPushWithURI = 115
ClientPushWithURI ... Client-initiated push cannot use the "uri" option.
CommandUnavailable ... Error code indicating that the feature you tried to access is only available internally for testing purposes.
const ConnectionFailed = 100
ConnectionFailed ... Error code indicating the connection to the Parse servers failed.
const DuplicateValue = 137
DuplicateValue ... Error code indicating that a unique field was given a value that is already taken.
const EmailMissing = 204
EmailMissing ... Error code indicating that the email is missing, but must be specified.
const EmailNotFound = 205
EmailNotFound ... Error code indicating that a user with the specified email was not found.
const EmailTaken = 203
EmailTaken ... Error code indicating that the email has already been taken.
const ExceededConfigParamsError = 116
ExceededConfigParamsError ... You have reached the limit of 100 config parameters.
const ExceededQuota = 140
ExceededQuota ... Error code indicating that an application quota was exceeded. Upgrade to resolve.
const FacebookBadID = 251
FacebookBadID ... A user with a linked Facebook account has an invalid session.
const FacebookBadToken = 251
FacebookBadToken ... The supplied Facebook session token is expired or invalid.
const FacebookSigninDisabled = 252
FacebookSigninDisabled ... Authentication by Facebook is not supported for this application.
const FacebookWrongAppID = 251
FacebookWrongAppID ... Unacceptable Facebook application id.
const FileDeleteError = 153
FileDeleteError ... File could not be deleted.
const FileReadError = 601
FileReadError ... Error code indicating the client was unable to read an input file.
const FileSaveError = 130
FileSaveError ... Error code indicating an error saving a file.
const FileTooLarge = 129
FileTooLarge ... Error code indicating a file that was too large.
const FunctionNotFound = 141
FunctionNotFound ... Cloud function not found.
const HostingError = 158
HostingError ... Hosting error.
const IncorrectType = 111
IncorrectType ... Error code indicating that a field was set to an inconsistent type.
const InefficientQueryError = 154
InefficientQueryError ... An inefficient query was rejected by the server.
const InternalServerError = 1
InternalServerError ... Internal server error.
const InvalidACL = 123
InvalidACL ... Error code indicating an invalid ACL was provided.
const InvalidAPIKeyError = 903
InvalidAPIKeyError ... The request is using an invalid API key.
const InvalidAuthDataError = 253
InvalidAuthDataError ... An invalid authData value was passed.
const InvalidChannelName = 112
InvalidChannelName ... 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 and starts with a letter.
const InvalidChannelsArrayError = 134
InvalidChannelsArrayError ... Invalid channels array value.
const InvalidClassName = 103
InvalidClassName ... 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.
const InvalidContentLength = 128
InvalidContentLength ... Error code indicating an invalid content length.
const InvalidDeviceToken = 114
InvalidDeviceToken ... The provided device token is invalid.
const InvalidDeviceTypeError = 133
InvalidDeviceTypeError ... Invalid device type.
const InvalidEmailAddress = 125
InvalidEmailAddress ... Error code indicating that the email address was invalid.
const InvalidEventName = 160
InvalidEventName ... Error code indicating an invalid event name.
const InvalidExpirationError = 138
InvalidExpirationError ... Invalid expiration value.
const InvalidFileName = 122
InvalidFileName ... Error code indicating that an invalid filename was used for ParseFile. A valid file name contains only a-zA-Z0-9. characters and is between 1 and 128 characters.
const InvalidGeneralAuthData = 251
InvalidGeneralAuthData ... Invalid auth data value used.
const InvalidImageData = 150
InvalidImageData ... Error code indicating that invalid image data was provided.
const InvalidInstallationIDError = 132
InvalidInstallationIDError ... Invalid installation id.
const InvalidJSON = 107
InvalidJSON ... 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.
const InvalidKeyName = 105
InvalidKeyName ... 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.
const InvalidLimitError = 117
InvalidLimitError ... An invalid value was set for the limit.
const InvalidLinkedSession = 251
InvalidLinkedSession ... Error code indicating that a user with a linked (e.g. Facebook) account has an invalid session.
const InvalidNestedKey = 121
InvalidNestedKey ... Error code indicating that an invalid key was used in a nested JSONObject.
const InvalidPointer = 106
InvalidPointer ... Error code indicating a malformed pointer. You should not see this unless you have been mucking about changing internal Parse code.
const InvalidProductIdentifier = 146
InvalidProductIdentifier ... The product identifier is invalid.
const InvalidPurchaseReceipt = 144
InvalidPurchaseReceipt ... Product purchase receipt is invalid.
const InvalidPushTimeError = 152
InvalidPushTimeError ... Error code indicating an invalid push time.
const InvalidQuery = 102
InvalidQuery ... Error code indicating you tried to query with a datatype that doesn't support it, like exact matching an array or object.
const InvalidRoleName = 139
InvalidRoleName ... Error code indicating that a role's name is invalid.
const InvalidServerResponse = 148
InvalidServerResponse ... The Apple server response is not valid.
const InvalidSessionToken = 209
InvalidSessionToken ... Error code indicating that the current session token is invalid.
const InvalidSkipError = 118
InvalidSkipError ... An invalid value was set for skip.
const InvalidSubscriptionType = 113
InvalidSubscriptionType ... Bad subscription type.
const JobNotFound = 141
JobNotFound ... Background job not found.
const LinkedIDMissing = 250
LinkedIDMissing ... Error code indicating that a user cannot be linked to an account because that account's id could not be found.
const LinkingNotSupportedError = 999
LinkingNotSupportedError ... Linking to an external account not supported yet with signup_or_login.
const MissingAPIKeyError = 902
MissingAPIKeyError ... The request is missing an API key.
const MissingContentLength = 127
MissingContentLength ... Error code indicating a missing content length.
const MissingContentType = 126
MissingContentType ... Error code indicating a missing content type.
const MissingDeviceTypeError = 157
MissingDeviceTypeError ... The device type field is missing. Deprecated.
const MissingObjectID = 104
MissingObjectID ... Error code indicating an unspecified object id.
const MissingPushIDError = 156
MissingPushIDError ... A push id is missing. Deprecated.
const MissingRequiredFieldError = 135
MissingRequiredFieldError ... Required field is missing.
const MultupleSuccessErrorCalls = 141
MultupleSuccessErrorCalls ... Can't call success/error multiple times.
const MustCreateUserThroughSignup = 207
MustCreateUserThroughSignup ... Error code indicating that a user can only be created through signup.
const NotInitialized = 109
NotInitialized ... You must call Parse.initialize before using the Parse library.
const ObjectNotFound = 101
ObjectNotFound ... Error code indicating the specified object doesn't exist.
const ObjectTooLarge = 116
ObjectTooLarge ... Error code indicating that the object is too large.
const OperationForbidden = 119
OperationForbidden ... Error code indicating that the operation isn't allowed for clients.
const OtherCause = -1
OtherCause ... Error code indicating some error other than those enumerated here.
const PasswordMissing = 201
PasswordMissing ... Error code indicating that the password is missing or empty.
const PaymentDisabled = 145
PaymentDisabled ... Payment is disabled on this device.
const ProductDownloadFilesystemError = 149
ProductDownloadFilesystemError ... The product fails to download due to file system error.
const ProductNotFoundInAppStore = 147
ProductNotFoundInAppStore ... The product is not found in the App Store.
const PushMisconfigured = 115
PushMisconfigured ... Error code indicating that push is misconfigured.
const PushMissingChannels = 115
PushMissingChannels ... Non-query push is missing a 'channels' field.
const PushMissingData = 115
PushMissingData ... Push is missing a 'data' field.
const PushQueryOrPayloadTooLarge = 115
PushQueryOrPayloadTooLarge ... Your push query or data payload is too large.
const PushWhereAndChannels = 115
PushWhereAndChannels ... Can't set channels for a query-targeted push.
const PushWhereAndType = 115
PushWhereAndType ... Can't set device type for a query-targeted push.
const ReceiptMissing = 143
ReceiptMissing ... Product purchase receipt is missing.
const RequestLimitExceeded = 155
RequestLimitExceeded ... Error code indicating that the application has exceeded its request limit.
const ReservedValue = 139
ReservedValue ... Field value is reserved.
const RestPushDisabled = 115
RestPushDisabled ... REST-initiated push is not enabled.
const ScriptFailed = 141
ScriptFailed ... Error code indicating that a Cloud Code script failed.
ServiceUnavailable ... The service is currently unavailable.
const SessionMissing = 206
SessionMissing ... Error code indicating that a user object without a valid session could not be altered.
const SuccessErrorNotCalled = 141
SuccessErrorNotCalled ... success/error was not called.
const TemporaryRejectionError = 159
TemporaryRejectionError ... An application's requests are temporary rejected by the server.
const Timeout = 124
Timeout ... Error code indicating that the request timed out on the server. Typically this indicates that the request is too expensive to run.
const TwitterConnectFailure = 251
TwitterConnectFailure ... Twitter credentials could not be verified due to problems accessing the Twitter API.
const TwitterSigninDisabled = 252
TwitterSigninDisabled ... Authentication by Twitter is not supported for this application.
const TwitterVerificationFailed = 251
TwitterVerificationFailed ... Twitter credential verification failed.
const TwitterWrongID = 251
TwitterWrongID ... Submitted Twitter id does not match the id associated with the submitted access token.
const TwitterWrongScreenName = 251
TwitterWrongScreenName ... Submitted Twitter handle does not match the handle associated with the submitted access token.
const UnsavedFileError = 151
UnsavedFileError ... Error code indicating an unsaved file.
const UnsupportedService = 252
UnsupportedService ... Error code indicating that a service being linked (e.g. Facebook or Twitter) is unsupported.
const UserInvalidLoginParams = 101
UserInvalidLoginParams ... Invalid login parameters.
const UsernameMissing = 200
UsernameMissing ... Error code indicating that the username is missing or empty.
const UsernameSigninDisabled = 252
UsernameSigninDisabled ... Authentication by username and password is not supported for this application.
const UsernameTaken = 202
UsernameTaken ... Error code indicating that the username has already been taken.
const ValidationError = 142
ValidationError ... Error code indicating that a Cloud Code validation failed.
const WebhookError = 143
WebhookError ... Webhook error.
const XDomainRequest = 602
XDomainRequest ... 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.
Variables ¶
This section is empty.
Functions ¶
func ErrorMessageToMap ¶
ErrorMessageToMap 把错误转换为 types.M 格式,准备返回给客户端