
    @wg                        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y)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y)DeprecationErrorz)Raised when a deprecated feature is used.N__name__
__module____qualname____doc__     C/var/www/horilla/myenv/lib/python3.12/site-packages/pypdf/errors.pyr   r      s    3r
   r   c                       e Zd ZdZy)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y)
PyPdfErrorz.Base class for all exceptions raised by PyPDF.Nr   r	   r
   r   r   r      s    8r
   r   c                       e Zd ZdZy)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y)PageSizeNotDefinedErrorz;Raised when the page size of a PDF document is not defined.Nr   r	   r
   r   r   r      s    Er
   r   c                       e Zd ZdZy)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y)PdfStreamErrorzGRaised when there is an issue reading the stream of data in a PDF file.Nr   r	   r
   r   r   r   #   s    Qr
   r   c                       e Zd ZdZy)
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y)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y)WrongPasswordErrorzORaised when the wrong password is used to try to decrypt an encrypted PDF file.Nr   r	   r
   r   r   r   6   s    Yr
   r   c                       e Zd ZdZy)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y)EmptyImageDataErrorz8Raised when trying to process an image that has no data.Nr   r	   r
   r   r"   r"   >   s    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   4y 4i 9 9<: <Fj F_[ _R\ R L Z. Z=\ =C* C  ? r
   