UNPKG

file-cms

Version:

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

37 lines (36 loc) 1.2 kB
import { __extends } from "tslib"; var FileNotFoundError = /** @class */ (function (_super) { __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)); export { FileNotFoundError };