object-deep-compare
Version:
A type-safe collection of comparison methods for objects and arrays in TypeScript/JavaScript
24 lines (23 loc) • 840 B
TypeScript
import { SchemaValidationResult } from '../types';
/**
* Schema Validation Error thrown when schema validation fails and throwOnValidationFailure is true
*/
export declare class SchemaValidationError extends Error {
validationResult: SchemaValidationResult;
/**
* Creates a new Schema Validation Error
* @param message - Error message
* @param validationResult - Result of schema validation that caused the error
*/
constructor(message: string, validationResult: SchemaValidationResult);
}
/**
* Error thrown when a circular reference is detected and handling is set to 'error'
*/
export declare class CircularReferenceError extends Error {
/**
* Creates a new Circular Reference Error
* @param path - Path where the circular reference was detected
*/
constructor(path: string);
}