ts-simple-ast
Version:
TypeScript compiler wrapper for static analysis and code manipulation.
19 lines (18 loc) • 767 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var BaseError_1 = require("./BaseError");
var PathNotFoundError = /** @class */ (function (_super) {
tslib_1.__extends(PathNotFoundError, _super);
/** @private */
function PathNotFoundError(path, prefix, prototype) {
if (prefix === void 0) { prefix = "Path"; }
if (prototype === void 0) { prototype = PathNotFoundError.prototype; }
var _this = _super.call(this, prefix + " not found: " + path, prototype) || this;
_this.path = path;
_this.code = "ENOENT";
return _this;
}
return PathNotFoundError;
}(BaseError_1.BaseError));
exports.PathNotFoundError = PathNotFoundError;