UNPKG

choerodon-ui

Version:

An enterprise-class UI design language and React-based implementation

63 lines (49 loc) 1.71 kB
import _classCallCheck from "@babel/runtime/helpers/classCallCheck"; import _inherits from "@babel/runtime/helpers/inherits"; import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn"; import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf"; import _wrapNativeSuper from "@babel/runtime/helpers/wrapNativeSuper"; function _createSuper(Derived) { function isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } return function () { var Super = _getPrototypeOf(Derived), result; if (isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } /* istanbul ignore next */ var DataSetRequestError = /*#__PURE__*/ function (_Error) { _inherits(DataSetRequestError, _Error); var _super = _createSuper(DataSetRequestError); function DataSetRequestError(error) { var _this; _classCallCheck(this, DataSetRequestError); _this = _super.call(this, error.message); _this.name = error.name; _this.stack = error.stack; return _this; } return DataSetRequestError; }( /*#__PURE__*/ _wrapNativeSuper(Error)); export { DataSetRequestError as default }; //# sourceMappingURL=DataSetRequestError.js.map