UNPKG

@bsv/sdk

Version:

BSV Blockchain Software Development Kit

20 lines 717 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.WERR_INVALID_PARAMETER = void 0; /** * The ${parameter} parameter is invalid. * * This is an example of an error object with a custom property `parameter` and templated `message`. */ class WERR_INVALID_PARAMETER extends Error { constructor(parameter, mustBe) { super(`The ${parameter} parameter must be ${mustBe ?? 'valid.'}`); this.parameter = parameter; this.isError = true; this.code = 6; this.name = this.constructor.name; } } exports.WERR_INVALID_PARAMETER = WERR_INVALID_PARAMETER; exports.default = WERR_INVALID_PARAMETER; //# sourceMappingURL=WERR_INVALID_PARAMETER.js.map