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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
#![allow(unused_imports)]
#![allow(clippy::all)]
use super::*;
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
extern "C" {
    # [wasm_bindgen (extends = :: js_sys :: Object , js_name = DOMException , typescript_type = "DOMException")]
    #[derive(Debug, Clone, PartialEq, Eq)]
    #[doc = "The `DomException` class."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMException)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `DomException`*"]
    pub type DomException;
    # [wasm_bindgen (structural , method , getter , js_class = "DOMException" , js_name = name)]
    #[doc = "Getter for the `name` field of this object."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMException/name)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `DomException`*"]
    pub fn name(this: &DomException) -> String;
    # [wasm_bindgen (structural , method , getter , js_class = "DOMException" , js_name = message)]
    #[doc = "Getter for the `message` field of this object."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMException/message)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `DomException`*"]
    pub fn message(this: &DomException) -> String;
    # [wasm_bindgen (structural , method , getter , js_class = "DOMException" , js_name = code)]
    #[doc = "Getter for the `code` field of this object."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMException/code)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `DomException`*"]
    pub fn code(this: &DomException) -> u16;
    # [wasm_bindgen (structural , method , getter , js_class = "DOMException" , js_name = result)]
    #[doc = "Getter for the `result` field of this object."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMException/result)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `DomException`*"]
    pub fn result(this: &DomException) -> u32;
    # [wasm_bindgen (structural , method , getter , js_class = "DOMException" , js_name = filename)]
    #[doc = "Getter for the `filename` field of this object."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMException/filename)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `DomException`*"]
    pub fn filename(this: &DomException) -> String;
    # [wasm_bindgen (structural , method , getter , js_class = "DOMException" , js_name = lineNumber)]
    #[doc = "Getter for the `lineNumber` field of this object."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMException/lineNumber)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `DomException`*"]
    pub fn line_number(this: &DomException) -> u32;
    # [wasm_bindgen (structural , method , getter , js_class = "DOMException" , js_name = columnNumber)]
    #[doc = "Getter for the `columnNumber` field of this object."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMException/columnNumber)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `DomException`*"]
    pub fn column_number(this: &DomException) -> u32;
    # [wasm_bindgen (structural , method , getter , js_class = "DOMException" , js_name = data)]
    #[doc = "Getter for the `data` field of this object."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMException/data)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `DomException`*"]
    pub fn data(this: &DomException) -> Option<::js_sys::Object>;
    # [wasm_bindgen (structural , method , getter , js_class = "DOMException" , js_name = stack)]
    #[doc = "Getter for the `stack` field of this object."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMException/stack)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `DomException`*"]
    pub fn stack(this: &DomException) -> String;
    #[wasm_bindgen(catch, constructor, js_class = "DOMException")]
    #[doc = "The `new DomException(..)` constructor, creating a new instance of `DomException`."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMException/DOMException)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `DomException`*"]
    pub fn new() -> Result<DomException, JsValue>;
    #[wasm_bindgen(catch, constructor, js_class = "DOMException")]
    #[doc = "The `new DomException(..)` constructor, creating a new instance of `DomException`."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMException/DOMException)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `DomException`*"]
    pub fn new_with_message(message: &str) -> Result<DomException, JsValue>;
    #[wasm_bindgen(catch, constructor, js_class = "DOMException")]
    #[doc = "The `new DomException(..)` constructor, creating a new instance of `DomException`."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMException/DOMException)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `DomException`*"]
    pub fn new_with_message_and_name(message: &str, name: &str) -> Result<DomException, JsValue>;
}
impl DomException {
    #[doc = "The `DOMException.INDEX_SIZE_ERR` const."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `DomException`*"]
    pub const INDEX_SIZE_ERR: u16 = 1u64 as u16;
    #[doc = "The `DOMException.DOMSTRING_SIZE_ERR` const."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `DomException`*"]
    pub const DOMSTRING_SIZE_ERR: u16 = 2u64 as u16;
    #[doc = "The `DOMException.HIERARCHY_REQUEST_ERR` const."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `DomException`*"]
    pub const HIERARCHY_REQUEST_ERR: u16 = 3u64 as u16;
    #[doc = "The `DOMException.WRONG_DOCUMENT_ERR` const."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `DomException`*"]
    pub const WRONG_DOCUMENT_ERR: u16 = 4u64 as u16;
    #[doc = "The `DOMException.INVALID_CHARACTER_ERR` const."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `DomException`*"]
    pub const INVALID_CHARACTER_ERR: u16 = 5u64 as u16;
    #[doc = "The `DOMException.NO_DATA_ALLOWED_ERR` const."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `DomException`*"]
    pub const NO_DATA_ALLOWED_ERR: u16 = 6u64 as u16;
    #[doc = "The `DOMException.NO_MODIFICATION_ALLOWED_ERR` const."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `DomException`*"]
    pub const NO_MODIFICATION_ALLOWED_ERR: u16 = 7u64 as u16;
    #[doc = "The `DOMException.NOT_FOUND_ERR` const."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `DomException`*"]
    pub const NOT_FOUND_ERR: u16 = 8u64 as u16;
    #[doc = "The `DOMException.NOT_SUPPORTED_ERR` const."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `DomException`*"]
    pub const NOT_SUPPORTED_ERR: u16 = 9u64 as u16;
    #[doc = "The `DOMException.INUSE_ATTRIBUTE_ERR` const."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `DomException`*"]
    pub const INUSE_ATTRIBUTE_ERR: u16 = 10u64 as u16;
    #[doc = "The `DOMException.INVALID_STATE_ERR` const."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `DomException`*"]
    pub const INVALID_STATE_ERR: u16 = 11u64 as u16;
    #[doc = "The `DOMException.SYNTAX_ERR` const."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `DomException`*"]
    pub const SYNTAX_ERR: u16 = 12u64 as u16;
    #[doc = "The `DOMException.INVALID_MODIFICATION_ERR` const."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `DomException`*"]
    pub const INVALID_MODIFICATION_ERR: u16 = 13u64 as u16;
    #[doc = "The `DOMException.NAMESPACE_ERR` const."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `DomException`*"]
    pub const NAMESPACE_ERR: u16 = 14u64 as u16;
    #[doc = "The `DOMException.INVALID_ACCESS_ERR` const."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `DomException`*"]
    pub const INVALID_ACCESS_ERR: u16 = 15u64 as u16;
    #[doc = "The `DOMException.VALIDATION_ERR` const."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `DomException`*"]
    pub const VALIDATION_ERR: u16 = 16u64 as u16;
    #[doc = "The `DOMException.TYPE_MISMATCH_ERR` const."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `DomException`*"]
    pub const TYPE_MISMATCH_ERR: u16 = 17u64 as u16;
    #[doc = "The `DOMException.SECURITY_ERR` const."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `DomException`*"]
    pub const SECURITY_ERR: u16 = 18u64 as u16;
    #[doc = "The `DOMException.NETWORK_ERR` const."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `DomException`*"]
    pub const NETWORK_ERR: u16 = 19u64 as u16;
    #[doc = "The `DOMException.ABORT_ERR` const."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `DomException`*"]
    pub const ABORT_ERR: u16 = 20u64 as u16;
    #[doc = "The `DOMException.URL_MISMATCH_ERR` const."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `DomException`*"]
    pub const URL_MISMATCH_ERR: u16 = 21u64 as u16;
    #[doc = "The `DOMException.QUOTA_EXCEEDED_ERR` const."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `DomException`*"]
    pub const QUOTA_EXCEEDED_ERR: u16 = 22u64 as u16;
    #[doc = "The `DOMException.TIMEOUT_ERR` const."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `DomException`*"]
    pub const TIMEOUT_ERR: u16 = 23u64 as u16;
    #[doc = "The `DOMException.INVALID_NODE_TYPE_ERR` const."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `DomException`*"]
    pub const INVALID_NODE_TYPE_ERR: u16 = 24u64 as u16;
    #[doc = "The `DOMException.DATA_CLONE_ERR` const."]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `DomException`*"]
    pub const DATA_CLONE_ERR: u16 = 25u64 as u16;
}