maxcountryman_web_sys/features/
gen_DomError.rs1#![allow(unused_imports)]
2use super::*;
3use wasm_bindgen::prelude::*;
4#[wasm_bindgen]
5extern "C" {
6 # [wasm_bindgen (extends = :: js_sys :: Object , js_name = DOMError , typescript_type = "DOMError")]
7 #[derive(Debug, Clone, PartialEq, Eq)]
8 #[doc = "The `DomError` class."]
9 #[doc = ""]
10 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMError)"]
11 #[doc = ""]
12 #[doc = "*This API requires the following crate features to be activated: `DomError`*"]
13 pub type DomError;
14 # [wasm_bindgen (structural , method , getter , js_class = "DOMError" , js_name = name)]
15 #[doc = "Getter for the `name` field of this object."]
16 #[doc = ""]
17 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMError/name)"]
18 #[doc = ""]
19 #[doc = "*This API requires the following crate features to be activated: `DomError`*"]
20 pub fn name(this: &DomError) -> String;
21 # [wasm_bindgen (structural , method , getter , js_class = "DOMError" , js_name = message)]
22 #[doc = "Getter for the `message` field of this object."]
23 #[doc = ""]
24 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMError/message)"]
25 #[doc = ""]
26 #[doc = "*This API requires the following crate features to be activated: `DomError`*"]
27 pub fn message(this: &DomError) -> String;
28 #[wasm_bindgen(catch, constructor, js_class = "DOMError")]
29 #[doc = "The `new DomError(..)` constructor, creating a new instance of `DomError`."]
30 #[doc = ""]
31 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMError/DOMError)"]
32 #[doc = ""]
33 #[doc = "*This API requires the following crate features to be activated: `DomError`*"]
34 pub fn new(name: &str) -> Result<DomError, JsValue>;
35 #[wasm_bindgen(catch, constructor, js_class = "DOMError")]
36 #[doc = "The `new DomError(..)` constructor, creating a new instance of `DomError`."]
37 #[doc = ""]
38 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMError/DOMError)"]
39 #[doc = ""]
40 #[doc = "*This API requires the following crate features to be activated: `DomError`*"]
41 pub fn new_with_message(name: &str, message: &str) -> Result<DomError, JsValue>;
42}