@enonic/mock-xp
Version:
Mock Enonic XP API JavaScript Library
19 lines (18 loc) • 742 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.RuntimeException = exports.RUNTIME_EXCEPTION_NAME = void 0;
var tslib_1 = require("tslib");
exports.RUNTIME_EXCEPTION_NAME = 'java.lang.RuntimeException';
var RuntimeException = (function (_super) {
tslib_1.__extends(RuntimeException, _super);
function RuntimeException(message) {
var _this = _super.call(this, message || 'An unexpected error occurred.') || this;
if (Error.captureStackTrace) {
Error.captureStackTrace(_this, RuntimeException);
}
_this.name = exports.RUNTIME_EXCEPTION_NAME;
return _this;
}
return RuntimeException;
}(Error));
exports.RuntimeException = RuntimeException;