Module error

Source
Expand description

Utilities to throw exceptions from Rust bindings.

Structsยง

ErrorInfo ๐Ÿ”’
A struct encapsulating information about a runtime script error.

Enumsยง

Error ๐Ÿ”’
DOM exceptions that can be thrown by a native DOM method. https://webidl.spec.whatwg.org/#dfn-error-names-table
JsEngineError ๐Ÿ”’
Error values that have no equivalent DOMException representation.

Traitsยง

ErrorToJsval ๐Ÿ”’

Functionsยง

create_dom_exception ๐Ÿ”’
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.
report_pending_exception ๐Ÿ”’
Report a pending exception, thereby clearing it.
throw_constructor_without_new ๐Ÿ”’
throw_dom_exception ๐Ÿ”’
Set a pending exception for the given result on cx.
throw_invalid_this ๐Ÿ”’
Throw an exception to signal that a JSObject can not be converted to a given DOM type.

Type Aliasesยง

ErrorResult ๐Ÿ”’
The return type for IDL operations that can throw DOM exceptions and return ().
Fallible ๐Ÿ”’
The return type for IDL operations that can throw DOM exceptions.