@@ -26,6 +26,7 @@ public struct ParseError: ParseType, Decodable, Swift.Error {
26
26
as `code` for `Error` for callbacks on all classes.
27
27
*/
28
28
public enum Code : Int , Swift . Error , Codable {
29
+
29
30
/**
30
31
Internal SDK Error. No information available
31
32
*/
@@ -35,191 +36,248 @@ public struct ParseError: ParseType, Decodable, Swift.Error {
35
36
Internal server error. No information available.
36
37
*/
37
38
case internalServer = 1
39
+
38
40
/**
39
41
The connection to the Parse servers failed.
40
42
*/
41
43
case connectionFailed = 100
44
+
42
45
/**
43
46
Object doesn't exist, or has an incorrect password.
44
47
*/
45
48
case objectNotFound = 101
49
+
46
50
/**
47
51
You tried to find values matching a datatype that doesn't
48
52
support exact database matching, like an array or a dictionary.
49
53
*/
50
54
case invalidQuery = 102
55
+
51
56
/**
52
57
Missing or invalid classname. Classnames are case-sensitive.
53
58
They must start with a letter, and `a-zA-Z0-9_` are the only valid characters.
54
59
*/
55
60
case invalidClassName = 103
61
+
56
62
/**
57
63
Missing object id.
58
64
*/
59
65
case missingObjectId = 104
66
+
60
67
/**
61
68
Invalid key name. Keys are case-sensitive.
62
69
They must start with a letter, and `a-zA-Z0-9_` are the only valid characters.
63
70
*/
64
71
case invalidKeyName = 105
72
+
65
73
/**
66
74
Malformed pointer. Pointers must be arrays of a classname and an object id.
67
75
*/
68
76
case invalidPointer = 106
77
+
69
78
/**
70
79
Malformed json object. A json dictionary is expected.
71
80
*/
72
81
case invalidJSON = 107
82
+
73
83
/**
74
84
Tried to access a feature only available internally.
75
85
*/
76
86
case commandUnavailable = 108
87
+
77
88
/**
78
89
Field set to incorrect type.
79
90
*/
80
91
case incorrectType = 111
92
+
81
93
/**
82
94
Invalid channel name. A channel name is either an empty string (the broadcast channel)
83
95
or contains only `a-zA-Z0-9_` characters and starts with a letter.
84
96
*/
85
97
case invalidChannelName = 112
98
+
86
99
/**
87
100
Invalid device token.
88
101
*/
89
102
case invalidDeviceToken = 114
103
+
90
104
/**
91
105
Push is misconfigured. See details to find out how.
92
106
*/
93
107
case pushMisconfigured = 115
108
+
94
109
/**
95
110
The object is too large.
96
111
*/
97
112
case objectTooLarge = 116
113
+
98
114
/**
99
115
That operation isn't allowed for clients.
100
116
*/
101
117
case operationForbidden = 119
118
+
102
119
/**
103
120
The results were not found in the cache.
104
121
*/
105
122
case cacheMiss = 120
123
+
106
124
/**
107
125
Keys in `NSDictionary` values may not include `$` or `.`.
108
126
*/
109
127
case invalidNestedKey = 121
128
+
110
129
/**
111
130
Invalid file name.
112
131
A file name can contain only `a-zA-Z0-9_.` characters and should be between 1 and 36 characters.
113
132
*/
114
133
case invalidFileName = 122
134
+
115
135
/**
116
136
Invalid ACL. An ACL with an invalid format was saved. This should not happen if you use `ACL`.
117
137
*/
118
138
case invalidACL = 123
139
+
119
140
/**
120
141
The request timed out on the server. Typically this indicates the request is too expensive.
121
142
*/
122
143
case timeout = 124
144
+
123
145
/**
124
146
The email address was invalid.
125
147
*/
126
148
case invalidEmailAddress = 125
149
+
127
150
/**
128
- A unique field was given a value that is already taken.
129
- */
130
- case duplicateValue = 137
131
- /**
132
- Role's name is invalid.
151
+ Missing content type.
133
152
*/
134
- case invalidRoleName = 139
153
+ case missingContentType = 126
154
+
135
155
/**
136
- Exceeded an application quota. Upgrade to resolve .
156
+ Missing content length .
137
157
*/
138
- case exceededQuota = 140
158
+ case missingContentLength = 127
159
+
139
160
/**
140
- Cloud Code script had an error .
161
+ Invalid content length .
141
162
*/
142
- case scriptError = 141
163
+ case invalidContentLength = 128
164
+
143
165
/**
144
- Cloud Code validation failed .
166
+ File was too large .
145
167
*/
146
- case validationError = 142
168
+ case fileTooLarge = 129
169
+
147
170
/**
148
- Product purchase receipt is missing .
171
+ Failure saving a file .
149
172
*/
150
- case receiptMissing = 143
173
+ case fileSaveFailure = 130
174
+
151
175
/**
152
- Product purchase receipt is invalid .
176
+ A unique field was given a value that is already taken .
153
177
*/
154
- case invalidPurchaseReceipt = 144
178
+ case duplicateValue = 137
179
+
155
180
/**
156
- Payment is disabled on this device .
181
+ Role's name is invalid .
157
182
*/
158
- case paymentDisabled = 145
183
+ case invalidRoleName = 139
184
+
159
185
/**
160
- The product identifier is invalid .
186
+ Exceeded an application quota. Upgrade to resolve .
161
187
*/
162
- case invalidProductIdentifier = 146
188
+ case exceededQuota = 140
189
+
163
190
/**
164
- The product is not found in the App Store .
191
+ Cloud Code script had an error .
165
192
*/
166
- case productNotFoundInAppStore = 147
193
+ case scriptFailed = 141
194
+
167
195
/**
168
- The Apple server response is not valid .
196
+ Cloud Code validation failed .
169
197
*/
170
- case invalidServerResponse = 148
198
+ case validationFailed = 142
199
+
171
200
/**
172
- Product fails to download due to file system error .
201
+ Fail to convert data to image .
173
202
*/
174
- case productDownloadFileSystemFailure = 149
203
+ case invalidImageData = 143
204
+
175
205
/**
176
- Fail to convert data to image .
206
+ Unsaved file failure .
177
207
*/
178
- case invalidImageData = 150
208
+ case unsavedFileFailure = 151
209
+
179
210
/**
180
- Unsaved file .
211
+ An invalid push time .
181
212
*/
182
- case unsavedFile = 151
213
+ case invalidPushTime = 152
214
+
183
215
/**
184
216
Fail to delete file.
185
217
*/
186
218
case fileDeleteFailure = 153
219
+
220
+ /**
221
+ Fail to delete an unnamed file.
222
+ */
223
+ case fileDeleteUnnamedFailure = 161
224
+
187
225
/**
188
226
Application has exceeded its request limit.
189
227
*/
190
228
case requestLimitExceeded = 155
229
+
230
+ /**
231
+ The request was a duplicate and has been discarded
232
+ due to idempotency rules.
233
+ */
234
+ case duplicateRequest = 159
235
+
191
236
/**
192
237
Invalid event name.
193
238
*/
194
239
case invalidEventName = 160
240
+
241
+ /**
242
+ Invalid value.
243
+ */
244
+ case invalidValue = 162
245
+
195
246
/**
196
247
Username is missing or empty.
197
248
*/
198
249
case usernameMissing = 200
250
+
199
251
/**
200
252
Password is missing or empty.
201
253
*/
202
254
case userPasswordMissing = 201
255
+
203
256
/**
204
257
Username has already been taken.
205
258
*/
206
259
case usernameTaken = 202
260
+
207
261
/**
208
262
Email has already been taken.
209
263
*/
210
264
case userEmailTaken = 203
265
+
211
266
/**
212
267
The email is missing, and must be specified.
213
268
*/
214
269
case userEmailMissing = 204
270
+
215
271
/**
216
272
A user with the specified email was not found.
217
273
*/
218
274
case userWithEmailNotFound = 205
275
+
219
276
/**
220
277
The user cannot be altered by a client without the session.
221
278
*/
222
279
case userCannotBeAlteredWithoutSession = 206
280
+
223
281
/**
224
282
Users can only be created through sign up.
225
283
*/
@@ -229,11 +287,22 @@ public struct ParseError: ParseType, Decodable, Swift.Error {
229
287
An existing account already linked to another user.
230
288
*/
231
289
case accountAlreadyLinked = 208
290
+
232
291
/**
233
- Error code indicating that the current session token is invalid.
292
+ The current session token is invalid.
234
293
*/
235
294
case invalidSessionToken = 209
236
295
296
+ /**
297
+ Error enabling or verifying MFA.
298
+ */
299
+ case mfaError = 210
300
+
301
+ /**
302
+ A valid MFA token must be provided.
303
+ */
304
+ case mfaTokenRequired = 211
305
+
237
306
/**
238
307
Linked id missing from request.
239
308
*/
0 commit comments