UNPKG

@byloth/exceptions

Version:

Handle exceptions with ease, create better stacktraces and manage everything in the right place. ❌

11 lines (7 loc) 215 B
import type { Constructor } from "@byloth/core"; export type ErrorHandler<E, R> = (error: E) => R; export interface ExceptionMap<E extends Error, R> { type: Constructor<E>; handler: ErrorHandler<E, R>; }