Function create_dom_exception

Source
pub(crate) fn create_dom_exception(
    global: &GlobalScope,
    result: Error,
    can_gc: CanGc,
) -> Result<DomRoot<DOMException>, JsEngineError>
Expand description

If possible, create a new DOMException representing the provided error. If no such DOMException exists, return a subset of the original error values that may need additional handling.