source: trip-planner-front/node_modules/external-editor/main/errors/ReadFileError.js@ 6a3a178

Last change on this file since 6a3a178 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 1.3 KB
Line 
1"use strict";
2/***
3 * Node External Editor
4 *
5 * Kevin Gravier <kevin@mrkmg.com>
6 * MIT 2018
7 */
8var __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})();
21Object.defineProperty(exports, "__esModule", { value: true });
22var 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));
39exports.ReadFileError = ReadFileError;
Note: See TracBrowser for help on using the repository browser.