UNPKG

file-cms

Version:

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

48 lines (47 loc) 1.55 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.NotFoundError = void 0; var tslib_1 = require("tslib"); var NotFoundError = /** @class */ (function (_super) { tslib_1.__extends(NotFoundError, _super); function NotFoundError(rootDir, type, slug, cause) { var _newTarget = this.constructor; var _this = _super.call(this, "Content Not Found, rootDir = ".concat(rootDir, ", type = ").concat(type, ", slug = ").concat(slug)) || this; _this._rootDir = rootDir; _this._type = type; _this._slug = slug; _this._cause = cause; Object.setPrototypeOf(_this, _newTarget.prototype); return _this; } Object.defineProperty(NotFoundError.prototype, "rootDir", { get: function () { return this._rootDir; }, enumerable: false, configurable: true }); Object.defineProperty(NotFoundError.prototype, "type", { get: function () { return this._type; }, enumerable: false, configurable: true }); Object.defineProperty(NotFoundError.prototype, "slug", { get: function () { return this._slug; }, enumerable: false, configurable: true }); Object.defineProperty(NotFoundError.prototype, "cause", { get: function () { return this._cause; }, enumerable: false, configurable: true }); return NotFoundError; }(Error)); exports.NotFoundError = NotFoundError;