Repositorio del curso CCOM4030 el semestre B91 del proyecto Artesanías con el Instituto de Cultura

ReadFileError.js 1.3KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. "use strict";
  2. /***
  3. * Node External Editor
  4. *
  5. * Kevin Gravier <kevin@mrkmg.com>
  6. * MIT 2018
  7. */
  8. var __extends = (this && this.__extends) || (function () {
  9. var extendStatics = function (d, b) {
  10. extendStatics = Object.setPrototypeOf ||
  11. ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
  12. function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
  13. return extendStatics(d, b);
  14. };
  15. return function (d, b) {
  16. extendStatics(d, b);
  17. function __() { this.constructor = d; }
  18. d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
  19. };
  20. })();
  21. Object.defineProperty(exports, "__esModule", { value: true });
  22. var ReadFileError = /** @class */ (function (_super) {
  23. __extends(ReadFileError, _super);
  24. function ReadFileError(originalError) {
  25. var _newTarget = this.constructor;
  26. var _this = _super.call(this, "Failed to read temporary file") || this;
  27. _this.originalError = originalError;
  28. var proto = _newTarget.prototype;
  29. if (Object.setPrototypeOf) {
  30. Object.setPrototypeOf(_this, proto);
  31. }
  32. else {
  33. _this.__proto__ = _newTarget.prototype;
  34. }
  35. return _this;
  36. }
  37. return ReadFileError;
  38. }(Error));
  39. exports.ReadFileError = ReadFileError;