4 /* API Doc :: dom-code */
6 /** DOM status/error/exception codes
8 * These enum values are used for return codes throughout the DOM engine.
11 /** ELinks specific codes: */
12 DOM_CODE_OK
= 0, /*: The sane default. */
13 DOM_CODE_ERR
= -1000, /*: Anything by DOM_CODE_OK. */
15 DOM_CODE_INCOMPLETE
, /*: The parsing could not be completed */
16 DOM_CODE_FREE_NODE
, /*: Discard the node */
19 DOM_CODE_ALLOC_ERR
, /*: Failed to allocate memory */
20 DOM_CODE_MAX_DEPTH_ERR
, /*: Stack max depth reached */
21 DOM_CODE_VALUE_ERR
, /*: Bad/unexpected value */
23 /** DOM Level 1 codes: */
24 DOM_CODE_INDEX_SIZE_ERR
= 1,
25 DOM_CODE_STRING_SIZE_ERR
= 2,
26 DOM_CODE_HIERARCHY_REQUEST_ERR
= 3,
27 DOM_CODE_WRONG_DOCUMENT_ERR
= 4,
28 DOM_CODE_INVALID_CHARACTER_ERR
= 5,
29 DOM_CODE_NO_DATA_ALLOWED_ERR
= 6,
30 DOM_CODE_NO_MODIFICATION_ALLOWED_ERR
= 7,
31 DOM_CODE_NOT_FOUND_ERR
= 8,
32 DOM_CODE_NOT_SUPPORTED_ERR
= 9,
33 DOM_CODE_INUSE_ATTRIBUTE_ERR
= 10,
35 /** Introduced in DOM Level 2: */
36 DOM_CODE_INVALID_STATE_ERR
= 11,
37 DOM_CODE_SYNTAX_ERR
= 12,
38 DOM_CODE_INVALID_MODIFICATION_ERR
= 13,
39 DOM_CODE_NAMESPACE_ERR
= 14,
40 DOM_CODE_INVALID_ACCESS_ERR
= 15,
42 /** Introduced in DOM Level 3: */
43 DOM_CODE_VALIDATION_ERR
= 16,
44 DOM_CODE_TYPE_MISMATCH_ERR
= 17,