1 #![allow(unused_imports)] 2 use super::*; 3 use wasm_bindgen::prelude::*; 4 #[wasm_bindgen] 5 extern "C" { 6 # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = ErrorEvent , typescript_type = "ErrorEvent")] 7 #[derive(Debug, Clone, PartialEq, Eq)] 8 #[doc = "The `ErrorEvent` class."] 9 #[doc = ""] 10 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ErrorEvent)"] 11 #[doc = ""] 12 #[doc = "*This API requires the following crate features to be activated: `ErrorEvent`*"] 13 pub type ErrorEvent; 14 # [wasm_bindgen (structural , method , getter , js_class = "ErrorEvent" , js_name = message)] 15 #[doc = "Getter for the `message` field of this object."] 16 #[doc = ""] 17 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ErrorEvent/message)"] 18 #[doc = ""] 19 #[doc = "*This API requires the following crate features to be activated: `ErrorEvent`*"] message(this: &ErrorEvent) -> String20 pub fn message(this: &ErrorEvent) -> String; 21 # [wasm_bindgen (structural , method , getter , js_class = "ErrorEvent" , js_name = filename)] 22 #[doc = "Getter for the `filename` field of this object."] 23 #[doc = ""] 24 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ErrorEvent/filename)"] 25 #[doc = ""] 26 #[doc = "*This API requires the following crate features to be activated: `ErrorEvent`*"] filename(this: &ErrorEvent) -> String27 pub fn filename(this: &ErrorEvent) -> String; 28 # [wasm_bindgen (structural , method , getter , js_class = "ErrorEvent" , js_name = lineno)] 29 #[doc = "Getter for the `lineno` field of this object."] 30 #[doc = ""] 31 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ErrorEvent/lineno)"] 32 #[doc = ""] 33 #[doc = "*This API requires the following crate features to be activated: `ErrorEvent`*"] lineno(this: &ErrorEvent) -> u3234 pub fn lineno(this: &ErrorEvent) -> u32; 35 # [wasm_bindgen (structural , method , getter , js_class = "ErrorEvent" , js_name = colno)] 36 #[doc = "Getter for the `colno` field of this object."] 37 #[doc = ""] 38 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ErrorEvent/colno)"] 39 #[doc = ""] 40 #[doc = "*This API requires the following crate features to be activated: `ErrorEvent`*"] colno(this: &ErrorEvent) -> u3241 pub fn colno(this: &ErrorEvent) -> u32; 42 # [wasm_bindgen (structural , method , getter , js_class = "ErrorEvent" , js_name = error)] 43 #[doc = "Getter for the `error` field of this object."] 44 #[doc = ""] 45 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ErrorEvent/error)"] 46 #[doc = ""] 47 #[doc = "*This API requires the following crate features to be activated: `ErrorEvent`*"] error(this: &ErrorEvent) -> ::wasm_bindgen::JsValue48 pub fn error(this: &ErrorEvent) -> ::wasm_bindgen::JsValue; 49 #[wasm_bindgen(catch, constructor, js_class = "ErrorEvent")] 50 #[doc = "The `new ErrorEvent(..)` constructor, creating a new instance of `ErrorEvent`."] 51 #[doc = ""] 52 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ErrorEvent/ErrorEvent)"] 53 #[doc = ""] 54 #[doc = "*This API requires the following crate features to be activated: `ErrorEvent`*"] new(type_: &str) -> Result<ErrorEvent, JsValue>55 pub fn new(type_: &str) -> Result<ErrorEvent, JsValue>; 56 #[cfg(feature = "ErrorEventInit")] 57 #[wasm_bindgen(catch, constructor, js_class = "ErrorEvent")] 58 #[doc = "The `new ErrorEvent(..)` constructor, creating a new instance of `ErrorEvent`."] 59 #[doc = ""] 60 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ErrorEvent/ErrorEvent)"] 61 #[doc = ""] 62 #[doc = "*This API requires the following crate features to be activated: `ErrorEvent`, `ErrorEventInit`*"] new_with_event_init_dict( type_: &str, event_init_dict: &ErrorEventInit, ) -> Result<ErrorEvent, JsValue>63 pub fn new_with_event_init_dict( 64 type_: &str, 65 event_init_dict: &ErrorEventInit, 66 ) -> Result<ErrorEvent, JsValue>; 67 } 68