File size: 495 Bytes
15fdcff
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
class ParserError(Exception):
    """Base exception for parser errors"""
    pass

class UnsupportedFormatError(ParserError):
    """Raised when document format is not supported"""
    pass

class ParseError(ParserError):
    """Raised when document parsing fails"""
    pass

class ValidationError(ParserError):
    """Raised when document validation fails"""
    pass

class EncodingError(ParserError):
    """Raised when document encoding cannot be determined or is not supported"""
    pass