Skip to main content

@oak/acorn@1.1.1
Built and signed on GitHub Actions

A focused RESTful server framework 🌰

This package works with Cloudflare Workers, Node.js, Deno, Bun
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
JSR Score
100%
Published
4 days ago (1.1.1)
interface ErrorDetails

Details provided an onError hook.

Type Parameters

Env extends Record<string, string> = Record<string, string>

Properties

The error message which was generated.

cause: unknown

The cause of the error. This is typically an Error instance, but can be any value.

The request event which was being processed when the error occurred.

If the error occurs outside of handling a request, this will be undefined.

If the error occurred before a response was returned to the client, this will be true. This indicates that the error hook can return a response which will be sent to the client instead of the default response.

optional
route: Route

If a route was matched, this will be the route that was matched.

Add Package

deno add jsr:@oak/acorn

Import symbol

import { type ErrorDetails } from "@oak/acorn";

---- OR ----

Import directly with a jsr specifier

import { type ErrorDetails } from "jsr:@oak/acorn";

Add Package

npx jsr add @oak/acorn

Import symbol

import { type ErrorDetails } from "@oak/acorn";

Add Package

yarn dlx jsr add @oak/acorn

Import symbol

import { type ErrorDetails } from "@oak/acorn";

Add Package

pnpm dlx jsr add @oak/acorn

Import symbol

import { type ErrorDetails } from "@oak/acorn";

Add Package

bunx jsr add @oak/acorn

Import symbol

import { type ErrorDetails } from "@oak/acorn";