You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An integer indicating the type of error generated.
7
-
"""
8
-
INDEX_SIZE_ERR=1
9
-
DOMSTRING_SIZE_ERR=2
10
-
HIERARCHY_REQUEST_ERR=3
11
-
WRONG_DOCUMENT_ERR=4
12
-
INVALID_CHARACTER_ERR=5
13
-
NO_DATA_ALLOWED_ERR=6
14
-
NO_MODIFICATION_ALLOWED_ERR=7
15
-
NOT_FOUND_ERR=8
16
-
NOT_SUPPORTED_ERR=9
17
-
INUSE_ATTRIBUTE_ERR=10
5
+
classDOMException(Exception):
6
+
"""Exception `DOMException`
18
7
8
+
DOM operations only raise exceptions in "exceptional" circumstances, i.e., when an operation is impossible to perform
9
+
(either for logical reasons, because data is lost, or because the implementation has become unstable).
10
+
In general, DOM methods return specific error values in ordinary processing situation, such as out-of-bound errors when using `NodeList`.
19
11
20
-
classDOMException(Exception):
21
-
"""Exception DOMException
12
+
Implementations may raise other exceptions under other circumstances.
13
+
For example, implementations may raise an implementation-dependent exception if a `None` argument is passed.
22
14
23
-
DOM operations only raise exceptions in "exceptional" circumstances, i.e., when an operation is impossible to perform (either for logical reasons, because data is lost, or because the implementation has become unstable). In general, DOM methods return specific error values in ordinary processing situation, such as out-of-bound errors when using `NodeList`.
24
-
Implementations may raise other exceptions under other circumstances. For example, implementations may raise an implementation-dependent exception if a null argument is passed.
25
-
Some languages and object systems do not support the concept of exceptions. For such systems, error conditions may be indicated using native error reporting mechanisms. For some bindings, for example, methods may return error codes similar to those listed in the corresponding method descriptions.
15
+
Some languages and object systems do not support the concept of exceptions.
16
+
For such systems, error conditions may be indicated using native error reporting mechanisms.
17
+
For some bindings, for example, methods may return error codes similar to those listed in the corresponding method descriptions.
0 commit comments