Skip to main content
Module

x/momentum/core/error-handler.ts>ErrorHandler

Momentum is an open-source framework for building server-side Deno applications in TypeScript. It provides the paradigms and design patterns to guide developers to create robust, scalable, and enterprise-grade applications.
Latest
interface ErrorHandler
import { type ErrorHandler } from "https://deno.land/x/momentum@v0.8.2/core/error-handler.ts";

An error handler that is registered as a global error handler executes when an unhandled error occurs.

Methods

getPriority(): number
handleError(error: unknown, contextAccessor: ContextAccessor): void | { handled: true; } | Promise<void | { handled: true; }>