nice-bill's picture
initial commit
cdb73a8
raw
history blame contribute delete
601 Bytes
"""Custom exception types for the book recommender application."""
class BookRecommenderError(Exception):
"""Base class for exceptions in this application."""
pass
class DataNotFoundError(BookRecommenderError, FileNotFoundError):
"""Raised when a required data file (e.g., CSV, pickle) is not found."""
pass
class FileProcessingError(BookRecommenderError):
"""Raised when there's an error during file processing (e.g., CSV parsing)."""
pass
class ModelLoadError(BookRecommenderError):
"""Raised when the sentence-transformer model cannot be loaded."""
pass