UNPKG

file-cms

Version:

File based Content Management System, easy to use with content stored in native file system

40 lines (39 loc) 1.33 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.FileNotFoundError = void 0; var tslib_1 = require("tslib"); var FileNotFoundError = /** @class */ (function (_super) { tslib_1.__extends(FileNotFoundError, _super); function FileNotFoundError(rootDir, path, cause) { var _newTarget = this.constructor; var _this = _super.call(this, "File Not Found, rootDir = ".concat(rootDir, ", path = ").concat(path)) || this; _this._rootDir = rootDir; _this._path = path; _this._cause = cause; Object.setPrototypeOf(_this, _newTarget.prototype); return _this; } Object.defineProperty(FileNotFoundError.prototype, "rootDir", { get: function () { return this._rootDir; }, enumerable: false, configurable: true }); Object.defineProperty(FileNotFoundError.prototype, "path", { get: function () { return this._path; }, enumerable: false, configurable: true }); Object.defineProperty(FileNotFoundError.prototype, "cause", { get: function () { return this._cause; }, enumerable: false, configurable: true }); return FileNotFoundError; }(Error)); exports.FileNotFoundError = FileNotFoundError;