ts-simple-ast
Version:
TypeScript compiler wrapper for static analysis and code manipulation.
17 lines (16 loc) • 763 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var ArgumentError_1 = require("./ArgumentError");
var ArgumentTypeError = /** @class */ (function (_super) {
tslib_1.__extends(ArgumentTypeError, _super);
function ArgumentTypeError(argName, expectedType, actualType) {
var _this = _super.call(this, argName, "Expected type '" + expectedType + "', but was '" + actualType + "'.", ArgumentTypeError.prototype) || this;
_this.argName = argName;
_this.expectedType = expectedType;
_this.actualType = actualType;
return _this;
}
return ArgumentTypeError;
}(ArgumentError_1.ArgumentError));
exports.ArgumentTypeError = ArgumentTypeError;