MCPcopy Create free account
hub / github.com/Starcounter-Jack/JSON-Patch /

Class

src/helpers.ts:159–159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

157 return messageParts.join('\n');
158}
159export 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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected