/**
 * Custom error class for validation errors.
 */
export class ValidationError extends Error {
    errors;
    constructor(message, errors = []) {
        super(message);
        this.name = 'ValidationError';
        this.errors = errors;
        // Maintains proper stack trace for where error was thrown
        if (Error.captureStackTrace) {
            Error.captureStackTrace(this, ValidationError);
        }
    }
}
/**
 * Custom error class for parsing errors.
 */
export class ParsingError extends Error {
    constructor(message) {
        super(message);
        this.name = 'ParsingError';
    }
}
//# sourceMappingURL=validation-result.js.map