Skip to main content
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.3.0/error.tsx";

Classes

An error for an HTTP request.

Variables

For internal use only. Used to provider errors on the server to the browser.

Functions

Any errors within the boundary will be captured by it. 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 that will show the error and provide a button for trying again. The error will clear when clicking the try again button or navigating to a different route.

Checks if the value as an HttpError.

This component can be used to throw a 404 not found error. It's used as the default wildcard route at the top level of your app.

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.