php-internal-docs
8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
domexception.h
Go to the documentation of this file.
1
/*
2
+----------------------------------------------------------------------+
3
| Copyright (c) The PHP Group |
4
+----------------------------------------------------------------------+
5
| This source file is subject to version 3.01 of the PHP license, |
6
| that is bundled with this package in the file LICENSE, and is |
7
| available through the world-wide-web at the following url: |
8
| https://www.php.net/license/3_01.txt |
9
| If you did not receive a copy of the PHP license and are unable to |
10
| obtain it through the world-wide-web, please send a note to |
11
| license@php.net so we can mail you a copy immediately. |
12
+----------------------------------------------------------------------+
13
| Authors: Christian Stocker <chregu@php.net> |
14
| Rob Richards <rrichards@php.net> |
15
+----------------------------------------------------------------------+
16
*/
17
18
#ifndef DOM_EXCEPTION_H
19
#define DOM_EXCEPTION_H
20
21
/* domexception errors */
22
typedef
enum
{
23
/* PHP_ERR is non-spec code for PHP errors: */
24
PHP_ERR
= 0,
25
INDEX_SIZE_ERR
= 1,
26
DOMSTRING_SIZE_ERR
= 2,
27
HIERARCHY_REQUEST_ERR
= 3,
28
WRONG_DOCUMENT_ERR
= 4,
29
INVALID_CHARACTER_ERR
= 5,
30
NO_DATA_ALLOWED_ERR
= 6,
31
NO_MODIFICATION_ALLOWED_ERR
= 7,
32
NOT_FOUND_ERR
= 8,
33
NOT_SUPPORTED_ERR
= 9,
34
INUSE_ATTRIBUTE_ERR
= 10,
35
/* Introduced in DOM Level 2: */
36
INVALID_STATE_ERR
= 11,
37
/* Introduced in DOM Level 2: */
38
SYNTAX_ERR
= 12,
39
/* Introduced in DOM Level 2: */
40
INVALID_MODIFICATION_ERR
= 13,
41
/* Introduced in DOM Level 2: */
42
NAMESPACE_ERR
= 14,
43
/* Introduced in DOM Level 2: */
44
INVALID_ACCESS_ERR
= 15,
45
/* Introduced in DOM Level 3: */
46
VALIDATION_ERR
= 16
47
}
dom_exception_code
;
48
49
void
php_dom_throw_error
(
dom_exception_code
error_code
,
bool
strict_error);
50
void
php_dom_throw_error_with_message
(
dom_exception_code
error_code
,
const
char
*error_message,
bool
strict_error);
51
52
#endif
/* DOM_EXCEPTION_H */
php_dom_throw_error_with_message
void php_dom_throw_error_with_message(dom_exception_code error_code, const char *error_message, bool strict_error)
php_dom_throw_error
void php_dom_throw_error(dom_exception_code error_code, bool strict_error)
dom_exception_code
dom_exception_code
Definition
domexception.h:22
NO_MODIFICATION_ALLOWED_ERR
@ NO_MODIFICATION_ALLOWED_ERR
Definition
domexception.h:31
INVALID_STATE_ERR
@ INVALID_STATE_ERR
Definition
domexception.h:36
NOT_FOUND_ERR
@ NOT_FOUND_ERR
Definition
domexception.h:32
HIERARCHY_REQUEST_ERR
@ HIERARCHY_REQUEST_ERR
Definition
domexception.h:27
INVALID_ACCESS_ERR
@ INVALID_ACCESS_ERR
Definition
domexception.h:44
INVALID_MODIFICATION_ERR
@ INVALID_MODIFICATION_ERR
Definition
domexception.h:40
INUSE_ATTRIBUTE_ERR
@ INUSE_ATTRIBUTE_ERR
Definition
domexception.h:34
NAMESPACE_ERR
@ NAMESPACE_ERR
Definition
domexception.h:42
NOT_SUPPORTED_ERR
@ NOT_SUPPORTED_ERR
Definition
domexception.h:33
NO_DATA_ALLOWED_ERR
@ NO_DATA_ALLOWED_ERR
Definition
domexception.h:30
INDEX_SIZE_ERR
@ INDEX_SIZE_ERR
Definition
domexception.h:25
INVALID_CHARACTER_ERR
@ INVALID_CHARACTER_ERR
Definition
domexception.h:29
SYNTAX_ERR
@ SYNTAX_ERR
Definition
domexception.h:38
WRONG_DOCUMENT_ERR
@ WRONG_DOCUMENT_ERR
Definition
domexception.h:28
DOMSTRING_SIZE_ERR
@ DOMSTRING_SIZE_ERR
Definition
domexception.h:26
VALIDATION_ERR
@ VALIDATION_ERR
Definition
domexception.h:46
PHP_ERR
@ PHP_ERR
Definition
domexception.h:24
error_code
php_json_error_code error_code
Definition
php_json.h:92
ext
dom
domexception.h
Generated on Sat Aug 23 2025 01:46:06 for php-internal-docs by
1.13.2