版博士V2.0程序
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 
 

26 строки
772 B

  1. "use strict";
  2. var __importDefault = (this && this.__importDefault) || function (mod) {
  3. return (mod && mod.__esModule) ? mod : { "default": mod };
  4. };
  5. Object.defineProperty(exports, "__esModule", { value: true });
  6. const DOMExceptionNameEnum_1 = __importDefault(require("./DOMExceptionNameEnum"));
  7. /**
  8. * DOM Exception.
  9. *
  10. * Reference:
  11. * https://developer.mozilla.org/en-US/docs/Web/API/DOMException/DOMException.
  12. */
  13. class DOMException extends Error {
  14. /**
  15. * Constructor.
  16. *
  17. * @param message Message.
  18. * @param name Name.
  19. */
  20. constructor(message, name = null) {
  21. super(message);
  22. this.name = name || DOMExceptionNameEnum_1.default.domException;
  23. }
  24. }
  25. exports.default = DOMException;
  26. //# sourceMappingURL=DOMException.js.map