Trait script::dom::bindings::codegen::Bindings::DOMExceptionBinding::DOMException_Binding::DOMExceptionMethods
source · pub trait DOMExceptionMethods<D: DomTypes> {
// Required methods
fn Code(&self) -> u16;
fn Name(&self) -> DOMString;
fn Message(&self) -> DOMString;
fn Constructor(
global: &GlobalScope,
proto: Option<HandleObject<'_>>,
can_gc: CanGc,
message: DOMString,
name: DOMString,
) -> Result<Root<Dom<DOMException>>, Error>;
}
Required Methods§
fn Code(&self) -> u16
fn Name(&self) -> DOMString
fn Message(&self) -> DOMString
fn Constructor( global: &GlobalScope, proto: Option<HandleObject<'_>>, can_gc: CanGc, message: DOMString, name: DOMString, ) -> Result<Root<Dom<DOMException>>, Error>
Object Safety§
This trait is not object safe.