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 RemoveFileError = /** @class */ (function (_super) {
|
---|
23 | __extends(RemoveFileError, _super);
|
---|
24 | function RemoveFileError(originalError) {
|
---|
25 | var _newTarget = this.constructor;
|
---|
26 | var _this = _super.call(this, "Failed to cleanup 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 RemoveFileError;
|
---|
38 | }(Error));
|
---|
39 | exports.RemoveFileError = RemoveFileError;
|
---|