"use strict";var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:!0}),exports.ErrorHandler=ErrorHandler,exports.ERROR_FATAL=exports.ERROR_HARMLESS=void 0;var _typeof2=_interopRequireDefault(require("@babel/runtime/helpers/typeof")),ERROR_HARMLESS=100;exports.ERROR_HARMLESS=ERROR_HARMLESS;var ERROR_FATAL=500;function ErrorHandler(e){var r=(1<arguments.length&&void 0!==arguments[1]?arguments[1]:{message:null}).message,R=2<arguments.length&&void 0!==arguments[2]?arguments[2]:ERROR_HARMLESS;if("object"===(0,_typeof2.default)(e)&&(r=e.message),this.err=new Error("".concat(e,"\n\n").concat(r)),R===ERROR_FATAL)throw this.err;console.log(this.err)}exports.ERROR_FATAL=ERROR_FATAL;
//# sourceMappingURL=error-helper.js.map
