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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
use Cow;
/// Implementation of [`Interface DOMError`](https://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/DOM3-Core.html#core-ERROR-Interfaces-DOMError).
///
/// # Specification
/// ```text
/// Interface DOMError (introduced in DOM Level 3)
/// DOMError is an interface that describes an error.
/// ```
/// Implementation of [`Interface DOMErrorHandler`](https://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/DOM3-Core.html#core-ERROR-Interfaces-DOMErrorHandler).
///
/// # Specification
/// ```text
/// Interface DOMErrorHandler (introduced in DOM Level 3)
/// DOMErrorHandler is a callback interface that the DOM implementation can call
/// when reporting errors that happens while processing XML data, or when doing
/// some other processing (e.g. validating a document). A DOMErrorHandler object
/// can be attached to a Document using the "error-handler" on the DOMConfiguration
/// interface. If more than one error needs to be reported during an operation, the
/// sequence and numbers of the errors passed to the error handler are implementation
/// dependent.
///
/// The application that is using the DOM implementation is expected to implement
/// this interface.
/// ```