Reactive utilities

catchError

Edit this page

Replacement: Errored

// 1.x
import { catchError } from "solid-js"
catchError(
() => riskyOperation(),
(err) => console.error("Caught:", err)
)
// 2.0
<Errored fallback={(err, reset) => <div>Error: {err.message}</div>}>
<RiskyComponent />
</Errored>

See the Errored reference for full documentation.

Report an issue with this page