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