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-2016 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  * Node invalid or could not be found.
37  */
39 
40  /**
41  * Asynchronous connection error.
42  */
44 
45  /**
46  * Asynchronous connection error.
47  */
49 
50  /**
51  * Query or scan was aborted in user's callback.
52  */
54 
55  /**
56  * Host name could not be found in DNS lookup.
57  */
59 
60  /**
61  * No more records available when parsing batch, scan or query records.
62  */
64 
65  /**
66  * Invalid client API parameter.
67  */
69 
70  /**
71  * Generic client API usage error.
72  */
74 
75  /**
76  * Deprecated. Generic client error. Keep for legacy reasons.
77  */
79 
80  /***************************************************************************
81  * Success
82  **************************************************************************/
83 
84  /**
85  * Generic success.
86  */
88 
89  /***************************************************************************
90  * Server Errors
91  **************************************************************************/
92 
93  /**
94  * Generic error returned by server.
95  */
97 
98  /**
99  * Record does not exist in database. May be returned by read, or write
100  * with policy AS_POLICY_EXISTS_UPDATE.
101  */
103 
104  /**
105  * Generation of record in database does not satisfy write policy.
106  */
108 
109  /**
110  * Request protocol invalid, or invalid protocol field.
111  */
113 
114  /**
115  * Record already exists. May be returned by write with policy
116  * AS_POLICY_EXISTS_CREATE.
117  */
119 
120  /**
121  * Bin already exists.
122  */
124 
125  /**
126  * A cluster state change occurred during the request. This may also be
127  * returned by scan operations with the fail_on_cluster_change flag set.
128  */
130 
131  /**
132  * The server node is running out of memory and/or storage device space
133  * reserved for the specified namespace.
134  */
136 
137  /**
138  * Request timed out. Can be triggered by client or server.
139  */
141 
142  /**
143  * XDR is not available for the cluster.
144  */
146 
147  /**
148  * Generic cluster discovery & connection error.
149  */
151 
152  /**
153  * Bin modification operation can't be done on an existing bin due to its
154  * value type.
155  */
157 
158  /**
159  * Record being (re-)written can't fit in a storage write block.
160  */
162 
163  /**
164  * Too may concurrent requests for one record - a "hot-key" situation.
165  */
167 
168  /**
169  * Scan aborted by user.
170  */
172 
173  /**
174  * Sometimes our doc, or our customers wishes, get ahead of us. We may have
175  * processed something that the server is not ready for (unsupported feature).
176  */
178 
179  /**
180  * Bin-level replace-only supported on server but not on client.
181  */
183 
184  /**
185  * The server node's storage device(s) can't keep up with the write load.
186  */
188 
189  /**
190  * Record key sent with transaction did not match key stored on server.
191  */
193 
194  /**
195  * Namespace in request not found on server.
196  */
198 
199  /**
200  * Sent too-long bin name (should be impossible in this client) or exceeded
201  * namespace's bin name quota.
202  */
204 
205  /**
206  * Operation not allowed at this time.
207  */
209 
210  /**
211  * There are no more records left for query.
212  */
214 
215  /**
216  * Security functionality not supported by connected server.
217  */
219 
220  /**
221  * Security functionality not enabled by connected server.
222  */
224 
225  /**
226  * Security type not supported by connected server.
227  */
229 
230  /**
231  * Administration command is invalid.
232  */
234 
235  /**
236  * Administration field is invalid.
237  */
239 
240  /**
241  * Security protocol not followed.
242  */
244 
245  /**
246  * User name is invalid.
247  */
249 
250  /**
251  * User was previously created.
252  */
254 
255  /**
256  * Password is invalid.
257  */
259 
260  /**
261  * Password has expired.
262  */
264 
265  /**
266  * Forbidden password (e.g. recently used)
267  */
269 
270  /**
271  * Security credential is invalid.
272  */
274 
275  /**
276  * Role name is invalid.
277  */
279 
280  /**
281  * Role already exists.
282  */
284 
285  /**
286  * Privilege is invalid.
287  */
289 
290  /**
291  * User must be authentication before performing database operations.
292  */
294 
295  /**
296  * User does not possess the required role to perform the database operation.
297  */
299 
300  /**
301  * Generic UDF error.
302  */
304 
305  /**
306  * The requested item in a large collection was not found.
307  */
309 
310  /**
311  * Batch functionality has been disabled.
312  */
314 
315  /**
316  * Batch max requests have been exceeded.
317  */
319 
320  /**
321  * All batch queues are full.
322  */
324 
325  /**
326  * Invalid/Unsupported GeoJSON
327  */
329 
330  /**
331  * Index found.
332  */
334 
335  /**
336  * Index not found
337  */
339 
340  /**
341  * Index is out of memory
342  */
344 
345  /**
346  * Unable to read the index.
347  */
349 
350  /**
351  * Generic secondary index error.
352  */
354 
355  /**
356  * Index name is too long.
357  */
359 
360  /**
361  * System already has maximum allowed indices.
362  */
364 
365  /**
366  * Query was aborted.
367  */
369 
370  /**
371  * Query processing queue is full.
372  */
374 
375  /**
376  * Secondary index query timed out on server.
377  */
379 
380  /**
381  * Generic query error.
382  */
384 
385  /***************************************************************************
386  * UDF OPERATIONS
387  **************************************************************************/
388 
389  /**
390  * UDF does not exist.
391  */
393  /**
394  * LUA file does not exist.
395  */
397 
398  /***************************************************************************
399  * Large Data Type (LDT) OPERATIONS
400  **************************************************************************/
401 
402  /** Internal LDT error. */
404 
405  /** LDT item not found */
407 
408  /** Unique key violation: Duplicated item inserted when 'unique key" was set.*/
410 
411  /** General error during insert operation. */
413 
414  /** General error during search operation. */
416 
417  /** General error during delete operation. */
419 
420 
421  /** General input parameter error. */
423 
424  // -------------------------------------------------
425 
426  /** LDT Type mismatch for this bin. */
428 
429  /** The supplied LDT bin name is null. */
431 
432  /** The supplied LDT bin name must be a string. */
434 
435  /** The supplied LDT bin name exceeded the 14 char limit. */
437 
438  /** Internal Error: too many open records at one time. */
440 
441  /** Internal Error: Top Record not found. */
443 
444  /** Internal Error: Sub Record not found. */
446 
447  /** LDT Bin does not exist. */
449 
450  /** Collision: LDT Bin already exists. */
452 
453  /** LDT control structures in the Top Record are damaged. Cannot proceed. */
455 
456  // -------------------------------------------------
457 
458  /** Internal Error: LDT Subrecord pool is damaged. */
460 
461  /** LDT control structures in the Sub Record are damaged. Cannot proceed. */
463 
464  /** Error encountered while opening a Sub Record. */
466 
467  /** Error encountered while updating a Sub Record. */
469 
470  /** Error encountered while creating a Sub Record. */
472 
473  /** Error encountered while deleting a Sub Record. */
475 
476  /** Error encountered while closing a Sub Record. */
478 
479  /** Error encountered while updating a TOP Record. */
481 
482  /** Error encountered while creating a TOP Record. */
484 
485  // -------------------------------------------------
486 
487  /** The filter function name was invalid. */
489 
490  /** The filter function was not found. */
492 
493  /** The function to extract the Unique Value from a complex object was invalid. */
495 
496  /** The function to extract the Unique Value from a complex object was not found. */
498 
499  /** The function to transform an object into a binary form was invalid. */
501 
502  /** The function to transform an object into a binary form was not found. */
504 
505  /** The function to untransform an object from binary form to live form was invalid. */
507 
508  /** The function to untransform an object from binary form to live form not found. */
510 
511  /** The UDF user module name for LDT Overrides was invalid */
513 
514  /** The UDF user module name for LDT Overrides was not found */
516 
517 } as_status;
518 
519 #ifdef __cplusplus
520 } // end extern "C"
521 #endif
as_status
Definition: as_status.h:30