[d24f17c] | 1 | (function webpackUniversalModuleDefinition(root, factory) {
|
---|
| 2 | if(typeof exports === 'object' && typeof module === 'object')
|
---|
| 3 | module.exports = factory();
|
---|
| 4 | else if(typeof define === 'function' && define.amd)
|
---|
| 5 | define([], factory);
|
---|
| 6 | else if(typeof exports === 'object')
|
---|
| 7 | exports["apidomError"] = factory();
|
---|
| 8 | else
|
---|
| 9 | root["apidomError"] = factory();
|
---|
| 10 | })(self, () => {
|
---|
| 11 | return /******/ (() => { // webpackBootstrap
|
---|
| 12 | /******/ "use strict";
|
---|
| 13 | /******/ var __webpack_modules__ = ({
|
---|
| 14 |
|
---|
| 15 | /***/ 984:
|
---|
| 16 | /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
---|
| 17 |
|
---|
| 18 | __webpack_require__.r(__webpack_exports__);
|
---|
| 19 | /* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
---|
| 20 | /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
---|
| 21 | /* harmony export */ });
|
---|
| 22 | class ApiDOMAggregateError extends AggregateError {
|
---|
| 23 | constructor(errors, message, options) {
|
---|
| 24 | super(errors, message, options);
|
---|
| 25 | this.name = this.constructor.name;
|
---|
| 26 | if (typeof message === 'string') {
|
---|
| 27 | this.message = message;
|
---|
| 28 | }
|
---|
| 29 | if (typeof Error.captureStackTrace === 'function') {
|
---|
| 30 | Error.captureStackTrace(this, this.constructor);
|
---|
| 31 | } else {
|
---|
| 32 | this.stack = new Error(message).stack;
|
---|
| 33 | }
|
---|
| 34 |
|
---|
| 35 | /**
|
---|
| 36 | * This needs to stay here until our minimum supported version of Node.js is >= 16.9.0.
|
---|
| 37 | * Node.js >= 16.9.0 supports error causes natively.
|
---|
| 38 | */
|
---|
| 39 | if (options != null && typeof options === 'object' && Object.hasOwn(options, 'cause') && !('cause' in this)) {
|
---|
| 40 | const {
|
---|
| 41 | cause
|
---|
| 42 | } = options;
|
---|
| 43 | this.cause = cause;
|
---|
| 44 | if (cause instanceof Error && 'stack' in cause) {
|
---|
| 45 | this.stack = `${this.stack}\nCAUSE: ${cause.stack}`;
|
---|
| 46 | }
|
---|
| 47 | }
|
---|
| 48 | }
|
---|
| 49 | }
|
---|
| 50 | /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ApiDOMAggregateError);
|
---|
| 51 |
|
---|
| 52 | /***/ }),
|
---|
| 53 |
|
---|
| 54 | /***/ 632:
|
---|
| 55 | /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
---|
| 56 |
|
---|
| 57 | __webpack_require__.r(__webpack_exports__);
|
---|
| 58 | /* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
---|
| 59 | /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
---|
| 60 | /* harmony export */ });
|
---|
| 61 | /* harmony import */ var _ApiDOMAggregateError__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(984);
|
---|
| 62 |
|
---|
| 63 | class ApiDOMError extends Error {
|
---|
| 64 | static [Symbol.hasInstance](instance) {
|
---|
| 65 | // we want to ApiDOMAggregateError to act as if ApiDOMError was its superclass
|
---|
| 66 | return super[Symbol.hasInstance](instance) || Function.prototype[Symbol.hasInstance].call(_ApiDOMAggregateError__WEBPACK_IMPORTED_MODULE_0__["default"], instance);
|
---|
| 67 | }
|
---|
| 68 | constructor(message, options) {
|
---|
| 69 | super(message, options);
|
---|
| 70 | this.name = this.constructor.name;
|
---|
| 71 | if (typeof message === 'string') {
|
---|
| 72 | this.message = message;
|
---|
| 73 | }
|
---|
| 74 | if (typeof Error.captureStackTrace === 'function') {
|
---|
| 75 | Error.captureStackTrace(this, this.constructor);
|
---|
| 76 | } else {
|
---|
| 77 | this.stack = new Error(message).stack;
|
---|
| 78 | }
|
---|
| 79 |
|
---|
| 80 | /**
|
---|
| 81 | * This needs to stay here until our minimum supported version of Node.js is >= 16.9.0.
|
---|
| 82 | * Node.js is >= 16.9.0 supports error causes natively.
|
---|
| 83 | */
|
---|
| 84 | if (options != null && typeof options === 'object' && Object.hasOwn(options, 'cause') && !('cause' in this)) {
|
---|
| 85 | const {
|
---|
| 86 | cause
|
---|
| 87 | } = options;
|
---|
| 88 | this.cause = cause;
|
---|
| 89 | if (cause instanceof Error && 'stack' in cause) {
|
---|
| 90 | this.stack = `${this.stack}\nCAUSE: ${cause.stack}`;
|
---|
| 91 | }
|
---|
| 92 | }
|
---|
| 93 | }
|
---|
| 94 | }
|
---|
| 95 | /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ApiDOMError);
|
---|
| 96 |
|
---|
| 97 | /***/ }),
|
---|
| 98 |
|
---|
| 99 | /***/ 604:
|
---|
| 100 | /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
---|
| 101 |
|
---|
| 102 | __webpack_require__.r(__webpack_exports__);
|
---|
| 103 | /* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
---|
| 104 | /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
---|
| 105 | /* harmony export */ });
|
---|
| 106 | /* harmony import */ var _ApiDOMError__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(632);
|
---|
| 107 |
|
---|
| 108 | class ApiDOMStructuredError extends _ApiDOMError__WEBPACK_IMPORTED_MODULE_0__["default"] {
|
---|
| 109 | constructor(message, structuredOptions) {
|
---|
| 110 | super(message, structuredOptions);
|
---|
| 111 | if (structuredOptions != null && typeof structuredOptions === 'object') {
|
---|
| 112 | const {
|
---|
| 113 | cause,
|
---|
| 114 | ...causelessOptions
|
---|
| 115 | } = structuredOptions;
|
---|
| 116 | Object.assign(this, causelessOptions);
|
---|
| 117 | }
|
---|
| 118 | }
|
---|
| 119 | }
|
---|
| 120 | /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ApiDOMStructuredError);
|
---|
| 121 |
|
---|
| 122 | /***/ }),
|
---|
| 123 |
|
---|
| 124 | /***/ 772:
|
---|
| 125 | /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
---|
| 126 |
|
---|
| 127 | __webpack_require__.r(__webpack_exports__);
|
---|
| 128 | /* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
---|
| 129 | /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
---|
| 130 | /* harmony export */ });
|
---|
| 131 | /* harmony import */ var _UnsupportedOperationError__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(356);
|
---|
| 132 |
|
---|
| 133 | class NotImplementedError extends _UnsupportedOperationError__WEBPACK_IMPORTED_MODULE_0__["default"] {}
|
---|
| 134 | /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (NotImplementedError);
|
---|
| 135 |
|
---|
| 136 | /***/ }),
|
---|
| 137 |
|
---|
| 138 | /***/ 356:
|
---|
| 139 | /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
---|
| 140 |
|
---|
| 141 | __webpack_require__.r(__webpack_exports__);
|
---|
| 142 | /* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
---|
| 143 | /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
---|
| 144 | /* harmony export */ });
|
---|
| 145 | /* harmony import */ var _ApiDOMError__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(632);
|
---|
| 146 |
|
---|
| 147 | class UnsupportedOperationError extends _ApiDOMError__WEBPACK_IMPORTED_MODULE_0__["default"] {}
|
---|
| 148 | /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (UnsupportedOperationError);
|
---|
| 149 |
|
---|
| 150 | /***/ })
|
---|
| 151 |
|
---|
| 152 | /******/ });
|
---|
| 153 | /************************************************************************/
|
---|
| 154 | /******/ // The module cache
|
---|
| 155 | /******/ var __webpack_module_cache__ = {};
|
---|
| 156 | /******/
|
---|
| 157 | /******/ // The require function
|
---|
| 158 | /******/ function __webpack_require__(moduleId) {
|
---|
| 159 | /******/ // Check if module is in cache
|
---|
| 160 | /******/ var cachedModule = __webpack_module_cache__[moduleId];
|
---|
| 161 | /******/ if (cachedModule !== undefined) {
|
---|
| 162 | /******/ return cachedModule.exports;
|
---|
| 163 | /******/ }
|
---|
| 164 | /******/ // Create a new module (and put it into the cache)
|
---|
| 165 | /******/ var module = __webpack_module_cache__[moduleId] = {
|
---|
| 166 | /******/ // no module.id needed
|
---|
| 167 | /******/ // no module.loaded needed
|
---|
| 168 | /******/ exports: {}
|
---|
| 169 | /******/ };
|
---|
| 170 | /******/
|
---|
| 171 | /******/ // Execute the module function
|
---|
| 172 | /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
---|
| 173 | /******/
|
---|
| 174 | /******/ // Return the exports of the module
|
---|
| 175 | /******/ return module.exports;
|
---|
| 176 | /******/ }
|
---|
| 177 | /******/
|
---|
| 178 | /************************************************************************/
|
---|
| 179 | /******/ /* webpack/runtime/define property getters */
|
---|
| 180 | /******/ (() => {
|
---|
| 181 | /******/ // define getter functions for harmony exports
|
---|
| 182 | /******/ __webpack_require__.d = (exports, definition) => {
|
---|
| 183 | /******/ for(var key in definition) {
|
---|
| 184 | /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
---|
| 185 | /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
---|
| 186 | /******/ }
|
---|
| 187 | /******/ }
|
---|
| 188 | /******/ };
|
---|
| 189 | /******/ })();
|
---|
| 190 | /******/
|
---|
| 191 | /******/ /* webpack/runtime/hasOwnProperty shorthand */
|
---|
| 192 | /******/ (() => {
|
---|
| 193 | /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
---|
| 194 | /******/ })();
|
---|
| 195 | /******/
|
---|
| 196 | /******/ /* webpack/runtime/make namespace object */
|
---|
| 197 | /******/ (() => {
|
---|
| 198 | /******/ // define __esModule on exports
|
---|
| 199 | /******/ __webpack_require__.r = (exports) => {
|
---|
| 200 | /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
---|
| 201 | /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
---|
| 202 | /******/ }
|
---|
| 203 | /******/ Object.defineProperty(exports, '__esModule', { value: true });
|
---|
| 204 | /******/ };
|
---|
| 205 | /******/ })();
|
---|
| 206 | /******/
|
---|
| 207 | /************************************************************************/
|
---|
| 208 | var __webpack_exports__ = {};
|
---|
| 209 | // This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
|
---|
| 210 | (() => {
|
---|
| 211 | __webpack_require__.r(__webpack_exports__);
|
---|
| 212 | /* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
---|
| 213 | /* harmony export */ ApiDOMAggregateError: () => (/* reexport safe */ _ApiDOMAggregateError__WEBPACK_IMPORTED_MODULE_1__["default"]),
|
---|
| 214 | /* harmony export */ ApiDOMError: () => (/* reexport safe */ _ApiDOMError__WEBPACK_IMPORTED_MODULE_0__["default"]),
|
---|
| 215 | /* harmony export */ ApiDOMStructuredError: () => (/* reexport safe */ _ApiDOMStructuredError__WEBPACK_IMPORTED_MODULE_2__["default"]),
|
---|
| 216 | /* harmony export */ NotImplementedError: () => (/* reexport safe */ _NotImplementedError__WEBPACK_IMPORTED_MODULE_4__["default"]),
|
---|
| 217 | /* harmony export */ UnsupportedOperationError: () => (/* reexport safe */ _UnsupportedOperationError__WEBPACK_IMPORTED_MODULE_3__["default"])
|
---|
| 218 | /* harmony export */ });
|
---|
| 219 | /* harmony import */ var _ApiDOMError__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(632);
|
---|
| 220 | /* harmony import */ var _ApiDOMAggregateError__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(984);
|
---|
| 221 | /* harmony import */ var _ApiDOMStructuredError__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(604);
|
---|
| 222 | /* harmony import */ var _UnsupportedOperationError__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(356);
|
---|
| 223 | /* harmony import */ var _NotImplementedError__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(772);
|
---|
| 224 | // base error classes
|
---|
| 225 |
|
---|
| 226 |
|
---|
| 227 |
|
---|
| 228 | // generic custom error classes
|
---|
| 229 |
|
---|
| 230 |
|
---|
| 231 | })();
|
---|
| 232 |
|
---|
| 233 | /******/ return __webpack_exports__;
|
---|
| 234 | /******/ })()
|
---|
| 235 | ;
|
---|
| 236 | }); |
---|