UNPKG

@enonic/mock-xp

Version:

Mock Enonic XP API JavaScript Library

24 lines (23 loc) 1.24 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.RepositoryNotFoundException = exports.REPOSITORY_NOT_FOUND_EXCEPTION_NAME = exports.REPOSITORY_NOT_FOUND_EXCEPTION_CODE = void 0; var tslib_1 = require("tslib"); var BaseException_1 = require("../exception/BaseException"); exports.REPOSITORY_NOT_FOUND_EXCEPTION_CODE = 'repositoryNotFound'; exports.REPOSITORY_NOT_FOUND_EXCEPTION_NAME = 'com.enonic.xp.repository.RepositoryNotFoundException'; var RepositoryNotFoundException = (function (_super) { tslib_1.__extends(RepositoryNotFoundException, _super); function RepositoryNotFoundException(repoId) { var _this = _super.call(this, "Repository with id [".concat(repoId, "] not found")) || this; if (Error.captureStackTrace) { Error.captureStackTrace(_this, RepositoryNotFoundException); } _this.name = exports.REPOSITORY_NOT_FOUND_EXCEPTION_NAME; return _this; } RepositoryNotFoundException.prototype.getCode = function () { return exports.REPOSITORY_NOT_FOUND_EXCEPTION_CODE; }; return RepositoryNotFoundException; }(BaseException_1.BaseException)); exports.RepositoryNotFoundException = RepositoryNotFoundException;