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_name identifies the error, it should be prefixed with [component_name]-.

The common path for this is through the GetErrorHandling trait. See handling.rs for details on that.

Arguments:
  • typeName (string)

  • message (string)