MCPcopy Create free account
hub / github.com/R-js/libRmath.js / VariableArgumentError

Class VariableArgumentError

src/lib/errors/VariableArgumentError.ts:3–7  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1// base object being wrapped is normal Error
2
3export default class VariableArgumentError extends Error {
4 constructor(readonly template: string, ...args: unknown[]) {
5 super(format(template, ...args));
6 }
7}
8
9function format(fmt: string, ...args: unknown[]) {
10 let i = 0;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected