mirror of
https://github.com/langgenius/dify.git
synced 2026-03-04 23:36:20 +08:00
15 lines
518 B
Python
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."""
|