UNPKG

@bsv/sdk

Version:

BSV Blockchain Software Development Kit

18 lines 562 B
/** * The ${parameter} parameter is invalid. * * This is an example of an error object with a custom property `parameter` and templated `message`. */ export class WERR_INVALID_PARAMETER extends Error { parameter; code; isError = true; constructor(parameter, mustBe) { super(`The ${parameter} parameter must be ${mustBe ?? 'valid.'}`); this.parameter = parameter; this.code = 6; this.name = this.constructor.name; } } export default WERR_INVALID_PARAMETER; //# sourceMappingURL=WERR_INVALID_PARAMETER.js.map