
    Ng                     ^   d Z  G d de          Z G d de          Z G d de          Z G d de          Z G d	 d
e          Z G d de          Z G d de          Z	 G d de          Z
 G d de          Z G d de          Z G d de          Z G d de          ZdZdS )z
All errors/exceptions pypdf raises and all of the warnings it uses.

Please note that broken PDF files might cause other Exceptions.
c                       e Zd ZdZdS )DeprecationErrorz)Raised when a deprecated feature is used.N__name__
__module____qualname____doc__     H/var/www/html/ai-engine/env/lib/python3.11/site-packages/pypdf/errors.pyr   r      s        3333r
   r   c                       e Zd ZdZdS )DependencyErrorz
    Raised when a required dependency (a library or module that PyPDF depends on)
    is not available or cannot be imported.
    Nr   r	   r
   r   r   r                 r
   r   c                       e Zd ZdZdS )
PyPdfErrorz.Base class for all exceptions raised by PyPDF.Nr   r	   r
   r   r   r      s        8888r
   r   c                       e Zd ZdZdS )PdfReadErrorz1Raised when there is an issue reading a PDF file.Nr   r	   r
   r   r   r      s        ;;;;r
   r   c                       e Zd ZdZdS )PageSizeNotDefinedErrorz;Raised when the page size of a PDF document is not defined.Nr   r	   r
   r   r   r      s        EEEEr
   r   c                       e Zd ZdZdS )PdfReadWarningzTIssued when there is a potential issue reading a PDF file, but it can still be read.Nr   r	   r
   r   r   r      s        ^^^^r
   r   c                       e Zd ZdZdS )PdfStreamErrorzGRaised when there is an issue reading the stream of data in a PDF file.Nr   r	   r
   r   r   r   #   s        QQQQr
   r   c                       e Zd ZdZdS )
ParseErrorzz
    Raised when there is an issue parsing (analyzing and understanding the
    structure and meaning of) a PDF file.
    Nr   r	   r
   r   r   r   '   r   r
   r   c                       e Zd ZdZdS )FileNotDecryptedErrorz
    Raised when a PDF file that has been encrypted
    (meaning it requires a password to be accessed) has not been successfully
    decrypted.
    Nr   r	   r
   r   r   r   .   s           r
   r   c                       e Zd ZdZdS )WrongPasswordErrorzORaised when the wrong password is used to try to decrypt an encrypted PDF file.Nr   r	   r
   r   r   r   6   s        YYYYr
   r   c                       e Zd ZdZdS )EmptyFileErrorz2Raised when a PDF file is empty or has no content.Nr   r	   r
   r   r    r    :   s        <<<<r
   r    c                       e Zd ZdZdS )EmptyImageDataErrorz8Raised when trying to process an image that has no data.Nr   r	   r
   r   r"   r"   >   s        BBBBr
   r"   zStream has ended unexpectedlyN)r   	Exceptionr   r   r   r   r   UserWarningr   r   r   r   r   r    r"   STREAM_TRUNCATED_PREMATURELYr	   r
   r   <module>r&      s>   4 4 4 4 4y 4 4 4    i   9 9 9 9 9 9 9 9< < < < <: < < <F F F F Fj F F F_ _ _ _ _[ _ _ _R R R R R\ R R R           L   Z Z Z Z Z. Z Z Z= = = = =\ = = =C C C C C* C C C  ?   r
   