UNPKG

@whisklabs/grpc

Version:

gRPC generator and http library for typescript

24 lines 735 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Thrower = void 0; var Thrower = /** @class */ (function () { function Thrower(name, message) { this.name = name; this.message = message; this.line = 0; this.column = 0; this.range = []; } Thrower.prototype.addLine = function (num) { this.line = num; }; Thrower.prototype.addColumn = function (num) { this.column = num; }; Thrower.prototype.addRange = function (range) { this.range = range.length > 10 ? range.slice(0, 5).concat(['...'], range.slice(-5)) : range; }; return Thrower; }()); exports.Thrower = Thrower; //# sourceMappingURL=thrower.js.map