plain-rag/app/core/exception.py

15 lines
424 B
Python

class DocumentInsertionError(Exception):
"""Exception raised when document insertion to database fails."""
class DocumentExtractionError(Exception):
"""Exception raised when document extraction from PDF fails."""
class ModelNotFoundError(Exception):
"""Exception raised when model is not found."""
class FileTypeIngestionError(Exception):
"""Exception raised when user upload unsupported file type."""