UNPKG

ts-simple-ast

Version:

TypeScript compiler wrapper for AST navigation and code generation.

13 lines (11 loc) 483 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const ArgumentError_1 = require("./ArgumentError"); class ArgumentOutOfRangeError extends ArgumentError_1.ArgumentError { constructor(argName, value, range) { super(argName, `Range is ${range[0]} to ${range[1]}, but ${value} was provided.`); this.argName = argName; } } exports.ArgumentOutOfRangeError = ArgumentOutOfRangeError; //# sourceMappingURL=ArgumentOutOfRangeError.js.map