UNPKG

@enonic/mock-xp

Version:

Mock Enonic XP API JavaScript Library

20 lines (19 loc) 806 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.BaseException = exports.BASE_EXCEPTION_NAME = void 0; var tslib_1 = require("tslib"); var RuntimeException_1 = require("./RuntimeException"); exports.BASE_EXCEPTION_NAME = 'com.enonic.xp.exception.BaseException'; var BaseException = (function (_super) { tslib_1.__extends(BaseException, _super); function BaseException(message) { var _this = _super.call(this, message || 'An unexpected error occurred.') || this; if (Error.captureStackTrace) { Error.captureStackTrace(_this, BaseException); } _this.name = exports.BASE_EXCEPTION_NAME; return _this; } return BaseException; }(RuntimeException_1.RuntimeException)); exports.BaseException = BaseException;