# class FetchResultError(Exception):
#     """Custom exception for document reading failures"""
#     pass

class FetchResultError(Exception):
    """Custom exception for fetch errors."""
    def __init__(self, file_path, message):
        super().__init__(f"Error fetching result from {file_path}: {message}")
        self.file_path = file_path
        self.message = message


class RestructureOutputError(Exception):
    """Custom exception for restructuring default estimator value"""
    pass
