class MCPExtractorError(Exception): """Base exception for this application.""" class OCRProcessingError(MCPExtractorError): """Raised when OCR / document conversion fails.""" class InvalidDocumentURLError(MCPExtractorError): """Raised when the provided document URL is invalid or unreachable."""