"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
var ErrorReporter = exports.default = /*#__PURE__*/function () {
  function ErrorReporter() {
    (0, _classCallCheck2.default)(this, ErrorReporter);
    (0, _defineProperty2.default)(this, "handlerStorage", null);
  }
  (0, _createClass2.default)(ErrorReporter, [{
    key: "captureMessage",
    value: function captureMessage(msg, tags) {
      if (this.handlerStorage) {
        this.handlerStorage.captureMessage(msg, tags);
      }
    }
  }, {
    key: "captureException",
    value: function captureException(err, tags) {
      if (this.handlerStorage) {
        this.handlerStorage.captureException(err, tags);
      }
    }
  }, {
    key: "handler",
    set: function set(handler) {
      this.handlerStorage = handler;
    }
  }]);
  return ErrorReporter;
}();