RustErrorsupport.sys.mjs
- RustErrorsupport.sys.reportError(typeName, message)
Report an unexpected error in a component
Call this to report an unexpected error via the rust-component-errors ping.
type_nameidentifies the error, it should be prefixed with[component_name]-.The common path for this is through the
GetErrorHandlingtrait. Seehandling.rsfor details on that.- Arguments:
typeName (string)
message (string)