Skip to content

exceptions

ContentExtractionError

Bases: ExtractionError

Raised when required content cannot be extracted from the page.

Source code in src/torah_dl/core/exceptions.py
19
20
21
22
class ContentExtractionError(ExtractionError):
    """Raised when required content cannot be extracted from the page."""

    pass

DownloadError

Bases: TorahDLError

Raised when there are issues during the download process.

Source code in src/torah_dl/core/exceptions.py
43
44
45
46
class DownloadError(TorahDLError):
    """Raised when there are issues during the download process."""

    pass

DownloadURLError

Bases: ContentExtractionError

Raised when the download URL cannot be found or extracted.

Source code in src/torah_dl/core/exceptions.py
25
26
27
28
class DownloadURLError(ContentExtractionError):
    """Raised when the download URL cannot be found or extracted."""

    pass

ExtractionError

Bases: TorahDLError

Base class for all extraction-related errors.

Source code in src/torah_dl/core/exceptions.py
 7
 8
 9
10
class ExtractionError(TorahDLError):
    """Base class for all extraction-related errors."""

    pass

ExtractorNotFoundError

Bases: ExtractionError

Raised when no extractor is found for a given URL.

Source code in src/torah_dl/core/exceptions.py
37
38
39
40
class ExtractorNotFoundError(ExtractionError):
    """Raised when no extractor is found for a given URL."""

    pass

NetworkError

Bases: ExtractionError

Raised when there are network-related issues during content extraction.

Source code in src/torah_dl/core/exceptions.py
13
14
15
16
class NetworkError(ExtractionError):
    """Raised when there are network-related issues during content extraction."""

    pass

TitleExtractionError

Bases: ContentExtractionError

Raised when the title cannot be found or decoded.

Source code in src/torah_dl/core/exceptions.py
31
32
33
34
class TitleExtractionError(ContentExtractionError):
    """Raised when the title cannot be found or decoded."""

    pass

TorahDLError

Bases: Exception

Base exception class for all torah-dl errors.

Source code in src/torah_dl/core/exceptions.py
1
2
3
4
class TorahDLError(Exception):
    """Base exception class for all torah-dl errors."""

    pass