MCPcopy Create free account
hub / github.com/GamerHack/GamerHack.github.io / DieError

Class DieError

g2all/900/module/utils.js:20–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18import { Int } from "./int64.js";
19
20export class DieError extends Error {
21 constructor(...args) {
22 super(...args);
23 this.name = this.constructor.name;
24 }
25}
26
27export function die(msg = "") {
28 throw new DieError(msg);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected