All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.cjs.ApiDOMStructuredError.cjs Maven / Gradle / Ivy

The newest version!
"use strict";

var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault").default;
exports.__esModule = true;
exports.default = void 0;
var _ApiDOMError = _interopRequireDefault(require("./ApiDOMError.cjs"));
class ApiDOMStructuredError extends _ApiDOMError.default {
  constructor(message, structuredOptions) {
    super(message, structuredOptions);
    if (structuredOptions != null && typeof structuredOptions === 'object') {
      const {
        cause,
        ...causelessOptions
      } = structuredOptions;
      Object.assign(this, causelessOptions);
    }
  }
}
var _default = exports.default = ApiDOMStructuredError;




© 2015 - 2024 Weber Informatics LLC | Privacy Policy