File size: 601 Bytes
cdb73a8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
"""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