Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
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); }}