-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjs_error.h
More file actions
35 lines (31 loc) · 752 Bytes
/
js_error.h
File metadata and controls
35 lines (31 loc) · 752 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
typedef enum {
OK,
ERROR_outofmemory,
ERROR_script_internal,
ERROR_script_unrecognized_function,
ERROR_tcperror,
ERROR_bsonformat,
ERROR_notobject_or_array,
ERROR_mathdomain,
ERROR_endoffile,
ERROR_doesnot_exist,
ERROR_script_parse,
ERROR_json_parse,
ERROR_not_document,
ERROR_not_found,
ERROR_toomany_local_docstores,
ERROR_txn_being_committed,
ERROR_txn_not_serializable,
ERROR_no_visible_version,
ERROR_write_conflict,
ERROR_key_constraint_violation,
ERROR_not_object,
ERROR_not_key,
ERROR_not_operator_int,
ERROR_incorrect_handle_type,
ERROR_empty_argument_list,
ERROR_invalid_argument,
} Status;
typedef void *JsStatus;
// errors are values < 4096
#define jsError(val) ((uint64_t)val < 0x1000 ? (uint64_t)val : 0)