pub fn dom_error(name: &str, msg: &str) -> String
A DOMException error string: name is the WHATWG error name.
DOMException
name