Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/evt/lib/types/EvtError.ts

💧EventEmitter's typesafe replacement
Go to Latest
File


export class TimeoutEvtError extends Error { constructor(public readonly timeout: number) { super(`Evt timeout after ${timeout}ms`); Object.setPrototypeOf(this, new.target.prototype); }}
export class DetachedEvtError extends Error { constructor() { super(`Evt handler detached`); Object.setPrototypeOf(this, new.target.prototype); }}