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.
Functionsยง
- report_
pending_ ๐ โexception Report a pending exception, thereby clearing it. - throw_
constructor_ ๐ โwithout_ new - throw_
dom_ ๐exception Set a pending exception for the givenresult
oncx
. - throw_
invalid_ ๐ โthis Throw an exception to signal that aJSObject
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.