Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/udibo_react_app/error.tsx

A React Framework for Deno that makes it easy to create highly interactive apps that have server side rendering with file based routing for both your UI and API.
Go to Latest
import * as udiboReactApp from "https://deno.land/x/udibo_react_app@0.12.0/error.tsx";

Classes

An error for an HTTP request.

Variables

A context object that is used to provide errors on the server to the browser. It takes an object with an optional error property, which represents the HttpError that occurred. This context is intended for internal use only.

Functions

A component that captures any errors within the boundary. Unlike ErrorBoundary, the AppErrorBoundary can be used to render errors on the server. For the error on the server to be caught by it, it must have the same boundary.

A simple error fallback component that can be used to show the error and provide a button for trying again. It takes a FallbackProps object with an error property, which represents the error that occurred, and a resetErrorBoundary function which is used to reset the error boundary. The error boundary automatically resets if the location changes.

Checks if the value as an HttpError.

A component that can be used to throw a 404 not found error. It is used as the default wildcard route at the top level of the app.

A hook that automatically resets the error boundary if the location changes. It takes a reset function and generates a new reset function that prevents multiple calls to the reset callback.

A higher-order component that wraps a component with an AppErrorBoundary. Any errors within the boundary will be captured by it. Unlike withErrorBoundary, withAppErrorBoundary can be used to render errors on the server. For the error on the server to be caught by it, it must have the same boundary.

Interfaces

Options for initializing an HttpError.