All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
as_status.h
Go to the documentation of this file.
1 /*
2  * Copyright 2008-2022 Aerospike, Inc.
3  *
4  * Portions may be licensed to Aerospike, Inc. under one or more contributor
5  * license agreements.
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License"); you may not
8  * use this file except in compliance with the License. You may obtain a copy of
9  * the License at http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13  * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14  * License for the specific language governing permissions and limitations under
15  * the License.
16  */
17 #pragma once
18 
19 #ifdef __cplusplus
20 extern "C" {
21 #endif
22 
23 /*******************************************************************************
24  * TYPES
25  ******************************************************************************/
26 
27 /**
28  * Status codes used as return values as as_error.code values.
29  */
30 typedef enum as_status_e {
31 
32  /***************************************************************************
33  * Client Errors
34  **************************************************************************/
35  /**
36  * One or more keys failed in a batch.
37  */
39 
40  /**
41  * No response received from server.
42  */
44 
45  /**
46  * Max errors limit reached.
47  */
49 
50  /**
51  * Abort split batch retry and use normal node retry instead.
52  * Used internally and should not be returned to user.
53  */
55 
56  /**
57  * Max retries limit reached.
58  */
60 
61  /**
62  * Async command delay queue is full.
63  */
65 
66  /**
67  * Synchronous connection error.
68  */
70 
71  /**
72  * Node invalid or could not be found.
73  */
75 
76  /**
77  * Node invalid or could not be found.
78  */
80 
81  /**
82  * Asynchronous connection error.
83  */
85 
86  /**
87  * Asynchronous connection error.
88  */
90 
91  /**
92  * Query or scan was aborted in user's callback.
93  */
95 
96  /**
97  * Host name could not be found in DNS lookup.
98  */
100 
101  /**
102  * No more records available when parsing batch, scan or query records.
103  */
105 
106  /**
107  * Invalid client API parameter.
108  */
110 
111  /**
112  * Generic client API usage error.
113  */
115 
116  /**
117  * Deprecated. Generic client error. Keep for legacy reasons.
118  */
120 
121  /***************************************************************************
122  * Success
123  **************************************************************************/
124 
125  /**
126  * Generic success.
127  */
129 
130  /***************************************************************************
131  * Server Errors
132  **************************************************************************/
133 
134  /**
135  * Generic error returned by server.
136  */
138 
139  /**
140  * Record does not exist in database. May be returned by read, or write
141  * with policy AS_POLICY_EXISTS_UPDATE.
142  */
144 
145  /**
146  * Generation of record in database does not satisfy write policy.
147  */
149 
150  /**
151  * Request protocol invalid, or invalid protocol field.
152  */
154 
155  /**
156  * Record already exists. May be returned by write with policy
157  * AS_POLICY_EXISTS_CREATE.
158  */
160 
161  /**
162  * Bin already exists on a create-only operation.
163  */
165 
166  /**
167  * A cluster state change occurred during the request. This may also be
168  * returned by scan operations with the fail_on_cluster_change flag set.
169  */
171 
172  /**
173  * The server node is running out of memory and/or storage device space
174  * reserved for the specified namespace.
175  */
177 
178  /**
179  * Request timed out. Can be triggered by client or server.
180  */
182 
183  /**
184  * Operation not allowed in current configuration.
185  */
187 
188  /**
189  * Partition is unavailable.
190  */
192 
193  /**
194  * Bin modification operation can't be done on an existing bin due to its
195  * value type.
196  */
198 
199  /**
200  * Record being (re-)written can't fit in a storage write block.
201  */
203 
204  /**
205  * Too may concurrent requests for one record - a "hot-key" situation.
206  */
208 
209  /**
210  * Scan aborted by user.
211  */
213 
214  /**
215  * Sometimes our doc, or our customers wishes, get ahead of us. We may have
216  * processed something that the server is not ready for (unsupported feature).
217  */
219 
220  /**
221  * Bin not found on update-only operation.
222  */
224 
225  /**
226  * The server node's storage device(s) can't keep up with the write load.
227  */
229 
230  /**
231  * Record key sent with transaction did not match key stored on server.
232  */
234 
235  /**
236  * Namespace in request not found on server.
237  */
239 
240  /**
241  * Sent too-long bin name (should be impossible in this client) or exceeded
242  * namespace's bin name quota.
243  */
245 
246  /**
247  * Operation not allowed at this time.
248  */
250 
251  /**
252  * Map element not found in UPDATE_ONLY write mode.
253  */
255 
256  /**
257  * Map element exists in CREATE_ONLY write mode.
258  */
260 
261  /**
262  * Attempt to use an Enterprise feature on a Community server or a server
263  * without the applicable feature key.
264  */
266 
267  /**
268  * The operation cannot be applied to the current bin value on the server.
269  */
271 
272  /**
273  * The transaction was not performed because the filter expression was
274  * false.
275  */
277 
278  /**
279  * Write command loses conflict to XDR.
280  */
282 
283  /**
284  * There are no more records left for query.
285  */
287 
288  /**
289  * Security functionality not supported by connected server.
290  */
292 
293  /**
294  * Security functionality not enabled by connected server.
295  */
297 
298  /**
299  * Security type not supported by connected server.
300  */
302 
303  /**
304  * Administration command is invalid.
305  */
307 
308  /**
309  * Administration field is invalid.
310  */
312 
313  /**
314  * Security protocol not followed.
315  */
317 
318  /**
319  * User name is invalid.
320  */
322 
323  /**
324  * User was previously created.
325  */
327 
328  /**
329  * Password is invalid.
330  */
332 
333  /**
334  * Password has expired.
335  */
337 
338  /**
339  * Forbidden password (e.g. recently used)
340  */
342 
343  /**
344  * Security credential is invalid.
345  */
347 
348  /**
349  * Login session expired.
350  */
352 
353  /**
354  * Role name is invalid.
355  */
357 
358  /**
359  * Role already exists.
360  */
362 
363  /**
364  * Privilege is invalid.
365  */
367 
368  /**
369  * Invalid IP whitelist.
370  */
372 
373  /**
374  * Quotas not enabled on server.
375  */
377 
378  /**
379  * Invalid quota.
380  */
382 
383  /**
384  * User must be authentication before performing database operations.
385  */
387 
388  /**
389  * User does not possess the required role to perform the database operation.
390  */
392 
393  /**
394  * Command not allowed because sender IP not whitelisted.
395  */
397 
398  /**
399  * Quota exceeded.
400  */
402 
403  /**
404  * Generic UDF error.
405  */
407 
408  /**
409  * Batch functionality has been disabled.
410  */
412 
413  /**
414  * Batch max requests have been exceeded.
415  */
417 
418  /**
419  * All batch queues are full.
420  */
422 
423  /**
424  * Invalid/Unsupported GeoJSON
425  */
427 
428  /**
429  * Index found.
430  */
432 
433  /**
434  * Index not found
435  */
437 
438  /**
439  * Index is out of memory
440  */
442 
443  /**
444  * Unable to read the index.
445  */
447 
448  /**
449  * Generic secondary index error.
450  */
452 
453  /**
454  * Index name is too long.
455  */
457 
458  /**
459  * System already has maximum allowed indices.
460  */
462 
463  /**
464  * Query was aborted.
465  */
467 
468  /**
469  * Query processing queue is full.
470  */
472 
473  /**
474  * Secondary index query timed out on server.
475  */
477 
478  /**
479  * Generic query error.
480  */
482 
483  /***************************************************************************
484  * UDF OPERATIONS
485  **************************************************************************/
486 
487  /**
488  * UDF does not exist.
489  */
491  /**
492  * LUA file does not exist.
493  */
495 
496 } as_status;
497 
498 #ifdef __cplusplus
499 } // end extern "C"
500 #endif
as_status
Definition: as_status.h:30