UNPKG

@nodecg/types

Version:

Dynamic broadcast graphics rendered in a browser

13 lines (11 loc) 278 B
import { Data } from "effect"; export class UnknownError extends Data.TaggedError("UnknownError") { constructor(cause: unknown) { super(); this.cause = cause; this.message = this.cause instanceof Error ? this.cause.message : "An unknown error occurred"; } }