"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"];

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = void 0;

var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));

var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));

var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));

var _createSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/createSuper"));

var _wrapNativeSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/wrapNativeSuper"));

/* istanbul ignore next */
var UploadError = /*#__PURE__*/function (_Error) {
  (0, _inherits2["default"])(UploadError, _Error);

  var _super = (0, _createSuper2["default"])(UploadError);

  function UploadError(error) {
    var _this;

    (0, _classCallCheck2["default"])(this, UploadError);
    _this = _super.call(this, error.message);
    _this.name = error.name;
    _this.stack = error.stack;
    _this.response = error.response;
    return _this;
  }

  return (0, _createClass2["default"])(UploadError);
}( /*#__PURE__*/(0, _wrapNativeSuper2["default"])(Error));

exports["default"] = UploadError;
//# sourceMappingURL=UploadError.js.map
