type alias ErrorHandlerFormatter
Since 0.1.0

A function that formats a thrown error into a serializable error body.

Definition

(
error: Error,
ctx?: IRequestContext
) => Record<string, unknown>

Usage

import { type ErrorHandlerFormatter } from "exceptions/src/index.ts";