| 157 | return messageParts.join('\n'); |
| 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 |
nothing calls this directly
no outgoing calls
no test coverage detected