(message, name, index, operation, tree)
| 166 | var PatchError = /** @class */ (function (_super) { |
| 167 | __extends(PatchError, _super); |
| 168 | function PatchError(message, name, index, operation, tree) { |
| 169 | var _newTarget = this.constructor; |
| 170 | var _this = _super.call(this, patchErrorMessageFormatter(message, { name: name, index: index, operation: operation, tree: tree })) || this; |
| 171 | _this.name = name; |
| 172 | _this.index = index; |
| 173 | _this.operation = operation; |
| 174 | _this.tree = tree; |
| 175 | Object.setPrototypeOf(_this, _newTarget.prototype); // restore prototype chain, see https://stackoverflow.com/a/48342359 |
| 176 | _this.message = patchErrorMessageFormatter(message, { name: name, index: index, operation: operation, tree: tree }); |
| 177 | return _this; |
| 178 | } |
| 179 | return PatchError; |
| 180 | }(Error)); |
| 181 | exports.PatchError = PatchError; |
nothing calls this directly
no test coverage detected