UNPKG

@enonic/mock-xp

Version:

Mock Enonic XP API JavaScript Library

28 lines (27 loc) 1.38 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.BranchAlreadyExistException = exports.BRANCH_ALREADY_EXIST_EXCEPTION_NAME = exports.BRANCH_ALREADY_EXIST_EXCEPTION_CODE = void 0; var tslib_1 = require("tslib"); var BaseException_1 = require("../exception/BaseException"); exports.BRANCH_ALREADY_EXIST_EXCEPTION_CODE = 'branchAlreadyExists'; exports.BRANCH_ALREADY_EXIST_EXCEPTION_NAME = 'com.enonic.xp.repo.impl.repository.BranchAlreadyExistException'; var BranchAlreadyExistException = (function (_super) { tslib_1.__extends(BranchAlreadyExistException, _super); function BranchAlreadyExistException(branch) { var _this = _super.call(this, "Branch [".concat(branch.id, "] already exists")) || this; _this.branch = branch; if (Error.captureStackTrace) { Error.captureStackTrace(_this, BranchAlreadyExistException); } _this.name = exports.BRANCH_ALREADY_EXIST_EXCEPTION_NAME; return _this; } BranchAlreadyExistException.prototype.getBranch = function () { return this.branch; }; BranchAlreadyExistException.prototype.getCode = function () { return exports.BRANCH_ALREADY_EXIST_EXCEPTION_CODE; }; return BranchAlreadyExistException; }(BaseException_1.BaseException)); exports.BranchAlreadyExistException = BranchAlreadyExistException;