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