UNPKG

probejs-core

Version:

A powerful tool for traversing and investigating nested objects

33 lines 866 B
/** * Base error class for Probe operations */ export declare class ProbeError extends Error { constructor(message: string); } /** * Error thrown for invalid path operations */ export declare class PathError extends ProbeError { constructor(path: string, reason: string); } /** * Error thrown for invalid key operations */ export declare class KeyError extends ProbeError { constructor(key: string, reason: string); } /** * Error thrown when circular references are detected */ export declare class CircularReferenceError extends ProbeError { constructor(path: string); } /** * Type guard for ProbeError */ export declare function isProbeError(error: unknown): error is ProbeError; /** * Utility function to handle and wrap unknown errors */ export declare function handleError(error: unknown): never; //# sourceMappingURL=errors.d.ts.map