(message: string, public name: JsonPatchErrorName, public index?: number, public operation?: any, public tree?: any)
| 158 | } |
| 159 | export class PatchError extends Error { |
| 160 | constructor(message: string, public name: JsonPatchErrorName, public index?: number, public operation?: any, public tree?: any) { |
| 161 | super(patchErrorMessageFormatter(message, { name, index, operation, tree })); |
| 162 | Object.setPrototypeOf(this, new.target.prototype); // restore prototype chain, see https://stackoverflow.com/a/48342359 |
| 163 | this.message = patchErrorMessageFormatter(message, { name, index, operation, tree }); |
| 164 | } |
| 165 | } |
nothing calls this directly
no test coverage detected