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-2017 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  * Synchronous connection error.
37  */
39 
40  /**
41  * Node invalid or could not be found.
42  */
44 
45  /**
46  * Node invalid or could not be found.
47  */
49 
50  /**
51  * Asynchronous connection error.
52  */
54 
55  /**
56  * Asynchronous connection error.
57  */
59 
60  /**
61  * Query or scan was aborted in user's callback.
62  */
64 
65  /**
66  * Host name could not be found in DNS lookup.
67  */
69 
70  /**
71  * No more records available when parsing batch, scan or query records.
72  */
74 
75  /**
76  * Invalid client API parameter.
77  */
79 
80  /**
81  * Generic client API usage error.
82  */
84 
85  /**
86  * Deprecated. Generic client error. Keep for legacy reasons.
87  */
89 
90  /***************************************************************************
91  * Success
92  **************************************************************************/
93 
94  /**
95  * Generic success.
96  */
98 
99  /***************************************************************************
100  * Server Errors
101  **************************************************************************/
102 
103  /**
104  * Generic error returned by server.
105  */
107 
108  /**
109  * Record does not exist in database. May be returned by read, or write
110  * with policy AS_POLICY_EXISTS_UPDATE.
111  */
113 
114  /**
115  * Generation of record in database does not satisfy write policy.
116  */
118 
119  /**
120  * Request protocol invalid, or invalid protocol field.
121  */
123 
124  /**
125  * Record already exists. May be returned by write with policy
126  * AS_POLICY_EXISTS_CREATE.
127  */
129 
130  /**
131  * Bin already exists.
132  */
134 
135  /**
136  * A cluster state change occurred during the request. This may also be
137  * returned by scan operations with the fail_on_cluster_change flag set.
138  */
140 
141  /**
142  * The server node is running out of memory and/or storage device space
143  * reserved for the specified namespace.
144  */
146 
147  /**
148  * Request timed out. Can be triggered by client or server.
149  */
151 
152  /**
153  * XDR is not available for the cluster.
154  */
156 
157  /**
158  * Generic cluster discovery & connection error.
159  */
161 
162  /**
163  * Bin modification operation can't be done on an existing bin due to its
164  * value type.
165  */
167 
168  /**
169  * Record being (re-)written can't fit in a storage write block.
170  */
172 
173  /**
174  * Too may concurrent requests for one record - a "hot-key" situation.
175  */
177 
178  /**
179  * Scan aborted by user.
180  */
182 
183  /**
184  * Sometimes our doc, or our customers wishes, get ahead of us. We may have
185  * processed something that the server is not ready for (unsupported feature).
186  */
188 
189  /**
190  * Bin-level replace-only supported on server but not on client.
191  */
193 
194  /**
195  * The server node's storage device(s) can't keep up with the write load.
196  */
198 
199  /**
200  * Record key sent with transaction did not match key stored on server.
201  */
203 
204  /**
205  * Namespace in request not found on server.
206  */
208 
209  /**
210  * Sent too-long bin name (should be impossible in this client) or exceeded
211  * namespace's bin name quota.
212  */
214 
215  /**
216  * Operation not allowed at this time.
217  */
219 
221 
223 
224  /**
225  * There are no more records left for query.
226  */
228 
229  /**
230  * Security functionality not supported by connected server.
231  */
233 
234  /**
235  * Security functionality not enabled by connected server.
236  */
238 
239  /**
240  * Security type not supported by connected server.
241  */
243 
244  /**
245  * Administration command is invalid.
246  */
248 
249  /**
250  * Administration field is invalid.
251  */
253 
254  /**
255  * Security protocol not followed.
256  */
258 
259  /**
260  * User name is invalid.
261  */
263 
264  /**
265  * User was previously created.
266  */
268 
269  /**
270  * Password is invalid.
271  */
273 
274  /**
275  * Password has expired.
276  */
278 
279  /**
280  * Forbidden password (e.g. recently used)
281  */
283 
284  /**
285  * Security credential is invalid.
286  */
288 
289  /**
290  * Role name is invalid.
291  */
293 
294  /**
295  * Role already exists.
296  */
298 
299  /**
300  * Privilege is invalid.
301  */
303 
304  /**
305  * User must be authentication before performing database operations.
306  */
308 
309  /**
310  * User does not possess the required role to perform the database operation.
311  */
313 
314  /**
315  * Generic UDF error.
316  */
318 
319  /**
320  * The requested item in a large collection was not found.
321  */
323 
324  /**
325  * Batch functionality has been disabled.
326  */
328 
329  /**
330  * Batch max requests have been exceeded.
331  */
333 
334  /**
335  * All batch queues are full.
336  */
338 
339  /**
340  * Invalid/Unsupported GeoJSON
341  */
343 
344  /**
345  * Index found.
346  */
348 
349  /**
350  * Index not found
351  */
353 
354  /**
355  * Index is out of memory
356  */
358 
359  /**
360  * Unable to read the index.
361  */
363 
364  /**
365  * Generic secondary index error.
366  */
368 
369  /**
370  * Index name is too long.
371  */
373 
374  /**
375  * System already has maximum allowed indices.
376  */
378 
379  /**
380  * Query was aborted.
381  */
383 
384  /**
385  * Query processing queue is full.
386  */
388 
389  /**
390  * Secondary index query timed out on server.
391  */
393 
394  /**
395  * Generic query error.
396  */
398 
399  /***************************************************************************
400  * UDF OPERATIONS
401  **************************************************************************/
402 
403  /**
404  * UDF does not exist.
405  */
407  /**
408  * LUA file does not exist.
409  */
411 
412  /***************************************************************************
413  * Large Data Type (LDT) OPERATIONS
414  **************************************************************************/
415 
416  /** Internal LDT error. */
418 
419  /** LDT item not found */
421 
422  /** Unique key violation: Duplicated item inserted when 'unique key" was set.*/
424 
425  /** General error during insert operation. */
427 
428  /** General error during search operation. */
430 
431  /** General error during delete operation. */
433 
434 
435  /** General input parameter error. */
437 
438  // -------------------------------------------------
439 
440  /** LDT Type mismatch for this bin. */
442 
443  /** The supplied LDT bin name is null. */
445 
446  /** The supplied LDT bin name must be a string. */
448 
449  /** The supplied LDT bin name exceeded the 14 char limit. */
451 
452  /** Internal Error: too many open records at one time. */
454 
455  /** Internal Error: Top Record not found. */
457 
458  /** Internal Error: Sub Record not found. */
460 
461  /** LDT Bin does not exist. */
463 
464  /** Collision: LDT Bin already exists. */
466 
467  /** LDT control structures in the Top Record are damaged. Cannot proceed. */
469 
470  // -------------------------------------------------
471 
472  /** Internal Error: LDT Subrecord pool is damaged. */
474 
475  /** LDT control structures in the Sub Record are damaged. Cannot proceed. */
477 
478  /** Error encountered while opening a Sub Record. */
480 
481  /** Error encountered while updating a Sub Record. */
483 
484  /** Error encountered while creating a Sub Record. */
486 
487  /** Error encountered while deleting a Sub Record. */
489 
490  /** Error encountered while closing a Sub Record. */
492 
493  /** Error encountered while updating a TOP Record. */
495 
496  /** Error encountered while creating a TOP Record. */
498 
499  // -------------------------------------------------
500 
501  /** The filter function name was invalid. */
503 
504  /** The filter function was not found. */
506 
507  /** The function to extract the Unique Value from a complex object was invalid. */
509 
510  /** The function to extract the Unique Value from a complex object was not found. */
512 
513  /** The function to transform an object into a binary form was invalid. */
515 
516  /** The function to transform an object into a binary form was not found. */
518 
519  /** The function to untransform an object from binary form to live form was invalid. */
521 
522  /** The function to untransform an object from binary form to live form not found. */
524 
525  /** The UDF user module name for LDT Overrides was invalid */
527 
528  /** The UDF user module name for LDT Overrides was not found */
530 
531 } as_status;
532 
533 #ifdef __cplusplus
534 } // end extern "C"
535 #endif