Files
dify/api/services/errors/document.py

18 lines
415 B
Python

from services.errors.base import BaseServiceError
class DocumentNotFoundError(Exception):
"""The requested document is unavailable."""
class DocumentSourceNotFoundError(Exception):
"""A document has no available source file for download."""
class DocumentAccessDeniedError(Exception):
"""The actor cannot access the document's dataset."""
class DocumentIndexingError(BaseServiceError):
pass