UNPKG

file-cms

Version:

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

45 lines (44 loc) 1.42 kB
import { __extends } from "tslib"; var NotFoundError = /** @class */ (function (_super) { __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)); export { NotFoundError };