Files
dify/api/dify_graph/nodes/document_extractor/exc.py

15 lines
518 B
Python

class DocumentExtractorError(ValueError):
"""Base exception for errors related to the DocumentExtractorNode."""
class FileDownloadError(DocumentExtractorError):
"""Exception raised when there's an error downloading a file."""
class UnsupportedFileTypeError(DocumentExtractorError):
"""Exception raised when trying to extract text from an unsupported file type."""
class TextExtractionError(DocumentExtractorError):
"""Exception raised when there's an error during text extraction from a file."""