Expand description
Utilities to throw exceptions from Rust bindings.
Structsยง
- Error
Info ๐ - 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
- JsEngine
Error ๐ - Error values that have no equivalent DOMException representation.
Traitsยง
- Error
ToJsval ๐
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
oncx
. - throw_
invalid_ ๐this - Throw an exception to signal that a
JSObject
can not be converted to a given DOM type.
Type Aliasesยง
- Error
Result ๐ - 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.