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

Class PatchError

module/helpers.d.ts:35–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33export declare function hasUndefined(obj: any): boolean;
34export declare type JsonPatchErrorName = 'SEQUENCE_NOT_AN_ARRAY' | 'OPERATION_NOT_AN_OBJECT' | 'OPERATION_OP_INVALID' | 'OPERATION_PATH_INVALID' | 'OPERATION_FROM_REQUIRED' | 'OPERATION_VALUE_REQUIRED' | 'OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED' | 'OPERATION_PATH_CANNOT_ADD' | 'OPERATION_PATH_UNRESOLVABLE' | 'OPERATION_FROM_UNRESOLVABLE' | 'OPERATION_PATH_ILLEGAL_ARRAY_INDEX' | 'OPERATION_VALUE_OUT_OF_BOUNDS' | 'TEST_OPERATION_FAILED';
35export declare class PatchError extends Error {
36 name: JsonPatchErrorName;
37 index?: number;
38 operation?: any;
39 tree?: any;
40 constructor(message: string, name: JsonPatchErrorName, index?: number, operation?: any, tree?: any);
41}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected