ErrorHandler (@shadow-js/core/extend)
A function that receives an error routed to an owner, as registered with onError or catchError. (ErrorHandler of @shadow-js/core/extend)
A function that receives an error routed to an owner, as registered with onError or
catchError. Throwing from it hands the new error to the next handler up the owner tree.
Import#
ts
import type { ErrorHandler } from "@shadow-js/core/extend";
Signature#
ts
type ErrorHandler = (error: unknown) => void
Parameters#
| Name | Description |
|---|---|
error |
The thrown value; not necessarily an Error. |