UNPKG

json-p3

Version:

JSONPath, JSON Pointer and JSON Patch

43 lines (42 loc) 1.26 kB
/** * Base class for all JSON Pointer errors. */ export declare class JSONPointerError extends Error { readonly message: string; constructor(message: string); } /** * Base class for JSON Pointer resolution errors. */ export declare class JSONPointerResolutionError extends JSONPointerError { readonly message: string; constructor(message: string); } /** * Error thrown due to an out of range index when resolving a JSON Pointer. */ export declare class JSONPointerIndexError extends JSONPointerResolutionError { readonly message: string; constructor(message: string); } /** * Error thrown due to a missing property when resolving a JSON Pointer. */ export declare class JSONPointerKeyError extends JSONPointerResolutionError { readonly message: string; constructor(message: string); } /** * Error thrown due to invalid JSON Pointer syntax. */ export declare class JSONPointerSyntaxError extends JSONPointerError { readonly message: string; constructor(message: string); } /** * Error thrown when trying to resolve a property or index against a primitive value. */ export declare class JSONPointerTypeError extends JSONPointerResolutionError { readonly message: string; constructor(message: string); }