File size: 599 Bytes
5b14aa2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
"""Custom exceptions for the LLM Data Converter library."""


class ConversionError(Exception):
    """Raised when document conversion fails."""
    pass


class UnsupportedFormatError(Exception):
    """Raised when the input format is not supported."""
    pass


class DocumentNotFoundError(Exception):
    """Raised when the input file is not found."""
    pass


class NetworkError(Exception):
    """Raised when network operations fail (e.g., URL fetching)."""
    pass


# Backwards compatibility alias (deprecated: use DocumentNotFoundError instead)
FileNotFoundError = DocumentNotFoundError