web_sys/features/
gen_Exception.rs

1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7    # [wasm_bindgen (is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = Exception , typescript_type = "Exception")]
8    #[derive(Debug, Clone, PartialEq, Eq)]
9    #[doc = "The `Exception` class."]
10    #[doc = ""]
11    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Exception)"]
12    #[doc = ""]
13    #[doc = "*This API requires the following crate features to be activated: `Exception`*"]
14    pub type Exception;
15    # [wasm_bindgen (structural , method , getter , js_class = "Exception" , js_name = name)]
16    #[doc = "Getter for the `name` field of this object."]
17    #[doc = ""]
18    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Exception/name)"]
19    #[doc = ""]
20    #[doc = "*This API requires the following crate features to be activated: `Exception`*"]
21    pub fn name(this: &Exception) -> ::alloc::string::String;
22    # [wasm_bindgen (structural , method , getter , js_class = "Exception" , js_name = message)]
23    #[doc = "Getter for the `message` field of this object."]
24    #[doc = ""]
25    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Exception/message)"]
26    #[doc = ""]
27    #[doc = "*This API requires the following crate features to be activated: `Exception`*"]
28    pub fn message(this: &Exception) -> ::alloc::string::String;
29    # [wasm_bindgen (structural , method , getter , js_class = "Exception" , js_name = result)]
30    #[doc = "Getter for the `result` field of this object."]
31    #[doc = ""]
32    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Exception/result)"]
33    #[doc = ""]
34    #[doc = "*This API requires the following crate features to be activated: `Exception`*"]
35    pub fn result(this: &Exception) -> u32;
36    # [wasm_bindgen (structural , method , getter , js_class = "Exception" , js_name = filename)]
37    #[doc = "Getter for the `filename` field of this object."]
38    #[doc = ""]
39    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Exception/filename)"]
40    #[doc = ""]
41    #[doc = "*This API requires the following crate features to be activated: `Exception`*"]
42    pub fn filename(this: &Exception) -> ::alloc::string::String;
43    # [wasm_bindgen (structural , method , getter , js_class = "Exception" , js_name = lineNumber)]
44    #[doc = "Getter for the `lineNumber` field of this object."]
45    #[doc = ""]
46    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Exception/lineNumber)"]
47    #[doc = ""]
48    #[doc = "*This API requires the following crate features to be activated: `Exception`*"]
49    pub fn line_number(this: &Exception) -> u32;
50    # [wasm_bindgen (structural , method , getter , js_class = "Exception" , js_name = columnNumber)]
51    #[doc = "Getter for the `columnNumber` field of this object."]
52    #[doc = ""]
53    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Exception/columnNumber)"]
54    #[doc = ""]
55    #[doc = "*This API requires the following crate features to be activated: `Exception`*"]
56    pub fn column_number(this: &Exception) -> u32;
57    # [wasm_bindgen (structural , method , getter , js_class = "Exception" , js_name = data)]
58    #[doc = "Getter for the `data` field of this object."]
59    #[doc = ""]
60    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Exception/data)"]
61    #[doc = ""]
62    #[doc = "*This API requires the following crate features to be activated: `Exception`*"]
63    pub fn data(this: &Exception) -> Option<::js_sys::Object>;
64    # [wasm_bindgen (structural , method , getter , js_class = "Exception" , js_name = stack)]
65    #[doc = "Getter for the `stack` field of this object."]
66    #[doc = ""]
67    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Exception/stack)"]
68    #[doc = ""]
69    #[doc = "*This API requires the following crate features to be activated: `Exception`*"]
70    pub fn stack(this: &Exception) -> ::alloc::string::String;
71}