@enonic/mock-xp
Version:
Mock Enonic XP API JavaScript Library
24 lines (23 loc) • 1.17 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.BranchNotFoundException = exports.BRANCH_NOT_FOUND_EXCEPTION_NAME = exports.BRANCH_NOT_FOUND_EXCEPTION_CODE = void 0;
var tslib_1 = require("tslib");
var BaseException_1 = require("../exception/BaseException");
exports.BRANCH_NOT_FOUND_EXCEPTION_CODE = 'branchNotFound';
exports.BRANCH_NOT_FOUND_EXCEPTION_NAME = 'com.enonic.xp.repository.BranchNotFoundException';
var BranchNotFoundException = (function (_super) {
tslib_1.__extends(BranchNotFoundException, _super);
function BranchNotFoundException(branchName) {
var _this = _super.call(this, "Branch with id [".concat(branchName, "] not found")) || this;
if (Error.captureStackTrace) {
Error.captureStackTrace(_this, BranchNotFoundException);
}
_this.name = exports.BRANCH_NOT_FOUND_EXCEPTION_NAME;
return _this;
}
BranchNotFoundException.prototype.getCode = function () {
return exports.BRANCH_NOT_FOUND_EXCEPTION_CODE;
};
return BranchNotFoundException;
}(BaseException_1.BaseException));
exports.BranchNotFoundException = BranchNotFoundException;