Main Page
Modules
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
aerospike
as_status.h
Go to the documentation of this file.
1
/*
2
* Copyright 2008-2014 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
/*******************************************************************************
20
* TYPES
21
******************************************************************************/
22
23
/**
24
* Status codes used as return values as as_error.code values.
25
*/
26
typedef
enum
as_status_e {
27
28
/***************************************************************************
29
* SUCCESS (all < 100)
30
**************************************************************************/
31
32
/**
33
* Generic success.
34
*/
35
AEROSPIKE_OK
= 0,
36
37
/***************************************************************************
38
* ERRORS (all < 100)
39
**************************************************************************/
40
41
AEROSPIKE_QUERY_END
= 50,
42
AEROSPIKE_SECURITY_NOT_SUPPORTED
= 51,
43
AEROSPIKE_SECURITY_NOT_ENABLED
= 52,
44
AEROSPIKE_SECURITY_SCHEME_NOT_SUPPORTED
= 53,
45
AEROSPIKE_INVALID_COMMAND
= 54,
46
AEROSPIKE_INVALID_FIELD
= 55,
47
AEROSPIKE_ILLEGAL_STATE
= 56,
48
AEROSPIKE_INVALID_USER
= 60,
49
AEROSPIKE_USER_ALREADY_EXISTS
= 61,
50
AEROSPIKE_INVALID_PASSWORD
= 62,
51
AEROSPIKE_EXPIRED_PASSWORD
= 63,
52
AEROSPIKE_FORBIDDEN_PASSWORD
= 64,
53
AEROSPIKE_INVALID_CREDENTIAL
= 65,
54
AEROSPIKE_INVALID_ROLE
= 70,
55
AEROSPIKE_INVALID_PRIVILEGE
= 71,
56
AEROSPIKE_NOT_AUTHENTICATED
= 80,
57
AEROSPIKE_ROLE_VIOLATION
= 81,
58
59
/***************************************************************************
60
* ERRORS (all >= 100)
61
**************************************************************************/
62
63
/**
64
* Generic error.
65
*/
66
AEROSPIKE_ERR
= 100,
67
68
/***************************************************************************
69
* CLIENT API USAGE
70
**************************************************************************/
71
72
/**
73
* Generic client API usage error.
74
*/
75
AEROSPIKE_ERR_CLIENT
= 200,
76
77
/**
78
* Invalid client API parameter.
79
*/
80
AEROSPIKE_ERR_PARAM
= 201,
81
82
/***************************************************************************
83
* CLUSTER DISCOVERY & CONNECTION
84
**************************************************************************/
85
86
/**
87
* Generic cluster discovery & connection error.
88
*/
89
AEROSPIKE_ERR_CLUSTER
= 300,
90
91
/***************************************************************************
92
* INCOMPLETE REQUESTS (i.e. NOT from server-returned error codes)
93
**************************************************************************/
94
95
/**
96
* Request timed out.
97
*/
98
AEROSPIKE_ERR_TIMEOUT
= 400,
99
100
/**
101
* Request randomly dropped by client for throttling.
102
* @warning Not yet supported.
103
*/
104
AEROSPIKE_ERR_THROTTLED
= 401,
105
106
/***************************************************************************
107
* COMPLETED REQUESTS (all >= 500, from server-returned error codes)
108
**************************************************************************/
109
110
/**
111
* Generic error returned by server.
112
*/
113
AEROSPIKE_ERR_SERVER
= 500,
114
115
/**
116
* Request protocol invalid, or invalid protocol field.
117
*/
118
AEROSPIKE_ERR_REQUEST_INVALID
= 501,
119
120
/**
121
* Namespace in request not found on server.
122
*/
123
AEROSPIKE_ERR_NAMESPACE_NOT_FOUND
= 502,
124
125
/**
126
* The server node is running out of memory and/or storage device space
127
* reserved for the specified namespace.
128
*/
129
AEROSPIKE_ERR_SERVER_FULL
= 503,
130
131
/**
132
* A cluster state change occurred during the request. This may also be
133
* returned by scan operations with the fail_on_cluster_change flag set.
134
*/
135
AEROSPIKE_ERR_CLUSTER_CHANGE
= 504,
136
137
/**
138
* Sometimes our doc, or our customers wishes, get ahead of us. We may have
139
* processed something that the server is not ready for (unsupported feature).
140
*/
141
AEROSPIKE_ERR_UNSUPPORTED_FEATURE
= 505,
142
143
/**
144
* The server node's storage device(s) can't keep up with the write load.
145
*/
146
AEROSPIKE_ERR_DEVICE_OVERLOAD
= 506,
147
148
/***************************************************************************
149
* RECORD-SPECIFIC
150
**************************************************************************/
151
152
/**
153
* Generic record error.
154
*/
155
AEROSPIKE_ERR_RECORD
= 600,
156
157
/**
158
* Too may concurrent requests for one record - a "hot-key" situation.
159
*/
160
AEROSPIKE_ERR_RECORD_BUSY
= 601,
161
162
/**
163
* Record does not exist in database. May be returned by read, or write
164
* with policy AS_POLICY_EXISTS_UPDATE.
165
* @warning AS_POLICY_EXISTS_UPDATE not yet supported.
166
*/
167
AEROSPIKE_ERR_RECORD_NOT_FOUND
= 602,
168
169
/**
170
* Record already exists. May be returned by write with policy
171
* AS_POLICY_EXISTS_CREATE.
172
*/
173
AEROSPIKE_ERR_RECORD_EXISTS
= 603,
174
175
/**
176
* Generation of record in database does not satisfy write policy.
177
*/
178
AEROSPIKE_ERR_RECORD_GENERATION
= 604,
179
180
/**
181
* Record being (re-)written can't fit in a storage write block.
182
*/
183
AEROSPIKE_ERR_RECORD_TOO_BIG
= 605,
184
185
/**
186
* Bin modification operation can't be done on an existing bin due to its
187
* value type.
188
*/
189
AEROSPIKE_ERR_BIN_INCOMPATIBLE_TYPE
= 606,
190
191
/**
192
* Record key sent with transaction did not match key stored on server.
193
*/
194
AEROSPIKE_ERR_RECORD_KEY_MISMATCH
= 607,
195
196
/**
197
* Sent too-long bin name (should be impossible in this client) or exceeded
198
* namespace's bin name quota.
199
*/
200
AEROSPIKE_ERR_BIN_NAME
= 608,
201
202
/***************************************************************************
203
* XDR-SPECIFIC
204
**************************************************************************/
205
206
/**
207
* XDR is not available for the cluster.
208
*/
209
AEROSPIKE_ERR_NO_XDR
= 900,
210
211
/***************************************************************************
212
* SCAN OPERATIONS
213
**************************************************************************/
214
215
/**
216
* Generic scan error.
217
*/
218
AEROSPIKE_ERR_SCAN
= 1000,
219
220
/**
221
* Scan aborted by user.
222
*/
223
AEROSPIKE_ERR_SCAN_ABORTED
= 1001,
224
225
/***************************************************************************
226
* QUERY OPERATIONS
227
**************************************************************************/
228
229
/**
230
* Generic query error.
231
*/
232
AEROSPIKE_ERR_QUERY
= 1100,
233
234
/**
235
* Query was aborted.
236
*/
237
AEROSPIKE_ERR_QUERY_ABORTED
= 1101,
238
239
/**
240
* Query processing queue is full.
241
*/
242
AEROSPIKE_ERR_QUERY_QUEUE_FULL
= 1102,
243
244
/***************************************************************************
245
* SECONDARY INDEX OPERATIONS
246
**************************************************************************/
247
248
/**
249
* Generic secondary index error.
250
*/
251
AEROSPIKE_ERR_INDEX
= 1200,
252
253
/**
254
* Index is out of memory
255
*/
256
AEROSPIKE_ERR_INDEX_OOM
= 1201,
257
258
/**
259
* Index not found
260
*/
261
AEROSPIKE_ERR_INDEX_NOT_FOUND
= 1202,
262
263
/**
264
* Index found.
265
*/
266
AEROSPIKE_ERR_INDEX_FOUND
= 1203,
267
268
/**
269
* Unable to read the index.
270
*/
271
AEROSPIKE_ERR_INDEX_NOT_READABLE
= 1204,
272
273
/**
274
* Index name is too long.
275
*/
276
AEROSPIKE_ERR_INDEX_NAME_MAXLEN
= 1205,
277
278
/**
279
* System already has maximum allowed indices.
280
*/
281
AEROSPIKE_ERR_INDEX_MAXCOUNT
= 1206,
282
283
/***************************************************************************
284
* UDF OPERATIONS
285
**************************************************************************/
286
287
/**
288
* Generic UDF error.
289
*/
290
AEROSPIKE_ERR_UDF
= 1300,
291
292
/**
293
* UDF does not exist.
294
*/
295
AEROSPIKE_ERR_UDF_NOT_FOUND
= 1301,
296
/**
297
* LUA file does not exist.
298
*/
299
AEROSPIKE_ERR_LUA_FILE_NOT_FOUND
= 1302,
300
301
/***************************************************************************
302
* Large Data Type (LDT) OPERATIONS
303
**************************************************************************/
304
305
/** Internal LDT error. */
306
AEROSPIKE_ERR_LDT_INTERNAL
= 1400,
307
308
/** LDT item not found */
309
AEROSPIKE_ERR_LDT_NOT_FOUND
= 1401,
310
311
/** Unique key violation: Duplicated item inserted when 'unique key" was set.*/
312
AEROSPIKE_ERR_LDT_UNIQUE_KEY
= 1402,
313
314
/** General error during insert operation. */
315
AEROSPIKE_ERR_LDT_INSERT
= 1403,
316
317
/** General error during search operation. */
318
AEROSPIKE_ERR_LDT_SEARCH
= 1404,
319
320
/** General error during delete operation. */
321
AEROSPIKE_ERR_LDT_DELETE
= 1405,
322
323
324
/** General input parameter error. */
325
AEROSPIKE_ERR_LDT_INPUT_PARM
= 1409,
326
327
// -------------------------------------------------
328
329
/** LDT Type mismatch for this bin. */
330
AEROSPIKE_ERR_LDT_TYPE_MISMATCH
= 1410,
331
332
/** The supplied LDT bin name is null. */
333
AEROSPIKE_ERR_LDT_NULL_BIN_NAME
= 1411,
334
335
/** The supplied LDT bin name must be a string. */
336
AEROSPIKE_ERR_LDT_BIN_NAME_NOT_STRING
= 1412,
337
338
/** The supplied LDT bin name exceeded the 14 char limit. */
339
AEROSPIKE_ERR_LDT_BIN_NAME_TOO_LONG
= 1413,
340
341
/** Internal Error: too many open records at one time. */
342
AEROSPIKE_ERR_LDT_TOO_MANY_OPEN_SUBRECS
= 1414,
343
344
/** Internal Error: Top Record not found. */
345
AEROSPIKE_ERR_LDT_TOP_REC_NOT_FOUND
= 1415,
346
347
/** Internal Error: Sub Record not found. */
348
AEROSPIKE_ERR_LDT_SUB_REC_NOT_FOUND
= 1416,
349
350
/** LDT Bin does not exist. */
351
AEROSPIKE_ERR_LDT_BIN_DOES_NOT_EXIST
= 1417,
352
353
/** Collision: LDT Bin already exists. */
354
AEROSPIKE_ERR_LDT_BIN_ALREADY_EXISTS
= 1418,
355
356
/** LDT control structures in the Top Record are damaged. Cannot proceed. */
357
AEROSPIKE_ERR_LDT_BIN_DAMAGED
= 1419,
358
359
// -------------------------------------------------
360
361
/** Internal Error: LDT Subrecord pool is damaged. */
362
AEROSPIKE_ERR_LDT_SUBREC_POOL_DAMAGED
= 1420,
363
364
/** LDT control structures in the Sub Record are damaged. Cannot proceed. */
365
AEROSPIKE_ERR_LDT_SUBREC_DAMAGED
= 1421,
366
367
/** Error encountered while opening a Sub Record. */
368
AEROSPIKE_ERR_LDT_SUBREC_OPEN
= 1422,
369
370
/** Error encountered while updating a Sub Record. */
371
AEROSPIKE_ERR_LDT_SUBREC_UPDATE
= 1423,
372
373
/** Error encountered while creating a Sub Record. */
374
AEROSPIKE_ERR_LDT_SUBREC_CREATE
= 1424,
375
376
/** Error encountered while deleting a Sub Record. */
377
AEROSPIKE_ERR_LDT_SUBREC_DELETE
= 1425,
378
379
/** Error encountered while closing a Sub Record. */
380
AEROSPIKE_ERR_LDT_SUBREC_CLOSE
= 1426,
381
382
/** Error encountered while updating a TOP Record. */
383
AEROSPIKE_ERR_LDT_TOPREC_UPDATE
= 1427,
384
385
/** Error encountered while creating a TOP Record. */
386
AEROSPIKE_ERR_LDT_TOPREC_CREATE
= 1428,
387
388
// -------------------------------------------------
389
390
/** The filter function name was invalid. */
391
AEROSPIKE_ERR_LDT_FILTER_FUNCTION_BAD
= 1430,
392
393
/** The filter function was not found. */
394
AEROSPIKE_ERR_LDT_FILTER_FUNCTION_NOT_FOUND
= 1431,
395
396
/** The function to extract the Unique Value from a complex object was invalid. */
397
AEROSPIKE_ERR_LDT_KEY_FUNCTION_BAD
= 1432,
398
399
/** The function to extract the Unique Value from a complex object was not found. */
400
AEROSPIKE_ERR_LDT_KEY_FUNCTION_NOT_FOUND
= 1433,
401
402
/** The function to transform an object into a binary form was invalid. */
403
AEROSPIKE_ERR_LDT_TRANS_FUNCTION_BAD
= 1434,
404
405
/** The function to transform an object into a binary form was not found. */
406
AEROSPIKE_ERR_LDT_TRANS_FUNCTION_NOT_FOUND
= 1435,
407
408
/** The function to untransform an object from binary form to live form was invalid. */
409
AEROSPIKE_ERR_LDT_UNTRANS_FUNCTION_BAD
= 1436,
410
411
/** The function to untransform an object from binary form to live form not found. */
412
AEROSPIKE_ERR_LDT_UNTRANS_FUNCTION_NOT_FOUND
= 1437,
413
414
/** The UDF user module name for LDT Overrides was invalid */
415
AEROSPIKE_ERR_LDT_USER_MODULE_BAD
= 1438,
416
417
/** The UDF user module name for LDT Overrides was not found */
418
AEROSPIKE_ERR_LDT_USER_MODULE_NOT_FOUND
= 1439
419
420
}
as_status
;
AEROSPIKE_ERR_LDT_FILTER_FUNCTION_NOT_FOUND
Definition:
as_status.h:394
AEROSPIKE_ROLE_VIOLATION
Definition:
as_status.h:57
AEROSPIKE_ERR_REQUEST_INVALID
Definition:
as_status.h:118
AEROSPIKE_ERR_INDEX_MAXCOUNT
Definition:
as_status.h:281
AEROSPIKE_ERR_INDEX_NOT_READABLE
Definition:
as_status.h:271
AEROSPIKE_ERR_LDT_FILTER_FUNCTION_BAD
Definition:
as_status.h:391
AEROSPIKE_ERR_RECORD_GENERATION
Definition:
as_status.h:178
AEROSPIKE_ERR_LDT_USER_MODULE_NOT_FOUND
Definition:
as_status.h:418
AEROSPIKE_ERR_LUA_FILE_NOT_FOUND
Definition:
as_status.h:299
AEROSPIKE_SECURITY_NOT_SUPPORTED
Definition:
as_status.h:42
AEROSPIKE_ERR_LDT_BIN_DAMAGED
Definition:
as_status.h:357
AEROSPIKE_ERR_QUERY_QUEUE_FULL
Definition:
as_status.h:242
AEROSPIKE_ERR_LDT_BIN_NAME_TOO_LONG
Definition:
as_status.h:339
AEROSPIKE_ERR_SERVER_FULL
Definition:
as_status.h:129
AEROSPIKE_NOT_AUTHENTICATED
Definition:
as_status.h:56
AEROSPIKE_ERR_RECORD
Definition:
as_status.h:155
as_status
as_status
Definition:
as_status.h:26
AEROSPIKE_FORBIDDEN_PASSWORD
Definition:
as_status.h:52
AEROSPIKE_ERR_PARAM
Definition:
as_status.h:80
AEROSPIKE_ERR_RECORD_TOO_BIG
Definition:
as_status.h:183
AEROSPIKE_ERR_LDT_KEY_FUNCTION_NOT_FOUND
Definition:
as_status.h:400
AEROSPIKE_ERR_LDT_SUBREC_UPDATE
Definition:
as_status.h:371
AEROSPIKE_ERR_LDT_UNTRANS_FUNCTION_NOT_FOUND
Definition:
as_status.h:412
AEROSPIKE_ERR_LDT_TOO_MANY_OPEN_SUBRECS
Definition:
as_status.h:342
AEROSPIKE_SECURITY_SCHEME_NOT_SUPPORTED
Definition:
as_status.h:44
AEROSPIKE_ERR_UNSUPPORTED_FEATURE
Definition:
as_status.h:141
AEROSPIKE_ERR_LDT_NOT_FOUND
Definition:
as_status.h:309
AEROSPIKE_ERR_RECORD_NOT_FOUND
Definition:
as_status.h:167
AEROSPIKE_INVALID_FIELD
Definition:
as_status.h:46
AEROSPIKE_ERR_LDT_SUBREC_OPEN
Definition:
as_status.h:368
AEROSPIKE_ERR_LDT_KEY_FUNCTION_BAD
Definition:
as_status.h:397
AEROSPIKE_ERR_RECORD_BUSY
Definition:
as_status.h:160
AEROSPIKE_INVALID_CREDENTIAL
Definition:
as_status.h:53
AEROSPIKE_OK
Definition:
as_status.h:35
AEROSPIKE_EXPIRED_PASSWORD
Definition:
as_status.h:51
AEROSPIKE_ERR_LDT_TYPE_MISMATCH
Definition:
as_status.h:330
AEROSPIKE_ERR_NO_XDR
Definition:
as_status.h:209
AEROSPIKE_INVALID_PASSWORD
Definition:
as_status.h:50
AEROSPIKE_ERR_LDT_BIN_NAME_NOT_STRING
Definition:
as_status.h:336
AEROSPIKE_ERR_LDT_INTERNAL
Definition:
as_status.h:306
AEROSPIKE_ERR_LDT_SUBREC_POOL_DAMAGED
Definition:
as_status.h:362
AEROSPIKE_ERR_LDT_TOPREC_CREATE
Definition:
as_status.h:386
AEROSPIKE_INVALID_PRIVILEGE
Definition:
as_status.h:55
AEROSPIKE_ERR_LDT_TRANS_FUNCTION_NOT_FOUND
Definition:
as_status.h:406
AEROSPIKE_INVALID_ROLE
Definition:
as_status.h:54
AEROSPIKE_ERR_INDEX_NAME_MAXLEN
Definition:
as_status.h:276
AEROSPIKE_ERR_LDT_UNIQUE_KEY
Definition:
as_status.h:312
AEROSPIKE_ERR_LDT_TOPREC_UPDATE
Definition:
as_status.h:383
AEROSPIKE_ERR_LDT_SUBREC_CREATE
Definition:
as_status.h:374
AEROSPIKE_ERR_LDT_SEARCH
Definition:
as_status.h:318
AEROSPIKE_ERR_LDT_INPUT_PARM
Definition:
as_status.h:325
AEROSPIKE_ERR_LDT_UNTRANS_FUNCTION_BAD
Definition:
as_status.h:409
AEROSPIKE_ERR_DEVICE_OVERLOAD
Definition:
as_status.h:146
AEROSPIKE_ERR_RECORD_EXISTS
Definition:
as_status.h:173
AEROSPIKE_ERR_INDEX_FOUND
Definition:
as_status.h:266
AEROSPIKE_SECURITY_NOT_ENABLED
Definition:
as_status.h:43
AEROSPIKE_ERR_TIMEOUT
Definition:
as_status.h:98
AEROSPIKE_INVALID_USER
Definition:
as_status.h:48
AEROSPIKE_ERR_LDT_NULL_BIN_NAME
Definition:
as_status.h:333
AEROSPIKE_ERR_LDT_SUBREC_DELETE
Definition:
as_status.h:377
AEROSPIKE_ERR_BIN_NAME
Definition:
as_status.h:200
AEROSPIKE_ERR_INDEX
Definition:
as_status.h:251
AEROSPIKE_ERR_RECORD_KEY_MISMATCH
Definition:
as_status.h:194
AEROSPIKE_ILLEGAL_STATE
Definition:
as_status.h:47
AEROSPIKE_ERR_SCAN_ABORTED
Definition:
as_status.h:223
AEROSPIKE_ERR_INDEX_OOM
Definition:
as_status.h:256
AEROSPIKE_ERR_SCAN
Definition:
as_status.h:218
AEROSPIKE_ERR_CLUSTER
Definition:
as_status.h:89
AEROSPIKE_ERR_SERVER
Definition:
as_status.h:113
AEROSPIKE_ERR_LDT_BIN_ALREADY_EXISTS
Definition:
as_status.h:354
AEROSPIKE_ERR_UDF_NOT_FOUND
Definition:
as_status.h:295
AEROSPIKE_ERR_QUERY
Definition:
as_status.h:232
AEROSPIKE_ERR_THROTTLED
Definition:
as_status.h:104
AEROSPIKE_ERR
Definition:
as_status.h:66
AEROSPIKE_USER_ALREADY_EXISTS
Definition:
as_status.h:49
AEROSPIKE_ERR_UDF
Definition:
as_status.h:290
AEROSPIKE_ERR_LDT_SUBREC_CLOSE
Definition:
as_status.h:380
AEROSPIKE_ERR_CLUSTER_CHANGE
Definition:
as_status.h:135
AEROSPIKE_ERR_CLIENT
Definition:
as_status.h:75
AEROSPIKE_ERR_INDEX_NOT_FOUND
Definition:
as_status.h:261
AEROSPIKE_ERR_LDT_BIN_DOES_NOT_EXIST
Definition:
as_status.h:351
AEROSPIKE_ERR_LDT_DELETE
Definition:
as_status.h:321
AEROSPIKE_ERR_LDT_SUBREC_DAMAGED
Definition:
as_status.h:365
AEROSPIKE_ERR_LDT_INSERT
Definition:
as_status.h:315
AEROSPIKE_ERR_LDT_TRANS_FUNCTION_BAD
Definition:
as_status.h:403
AEROSPIKE_ERR_LDT_SUB_REC_NOT_FOUND
Definition:
as_status.h:348
AEROSPIKE_ERR_BIN_INCOMPATIBLE_TYPE
Definition:
as_status.h:189
AEROSPIKE_ERR_QUERY_ABORTED
Definition:
as_status.h:237
AEROSPIKE_ERR_LDT_TOP_REC_NOT_FOUND
Definition:
as_status.h:345
AEROSPIKE_QUERY_END
Definition:
as_status.h:41
AEROSPIKE_ERR_LDT_USER_MODULE_BAD
Definition:
as_status.h:415
AEROSPIKE_INVALID_COMMAND
Definition:
as_status.h:45
AEROSPIKE_ERR_NAMESPACE_NOT_FOUND
Definition:
as_status.h:123