o
    >e`                     @   s   d Z G dd deZG dd deZG dd deZG dd deZG d	d
 d
eZG dd deZG dd deZ	G dd deZ
G dd deZG dd deZG d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__ r   r   M/var/www/html/humari/django-venv/lib/python3.10/site-packages/pypdf/errors.pyr          r   c                   @   r   )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                   @   r   )
PyPdfErrorz.Base class for all exceptions raised by PyPDF.Nr   r   r   r   r	   r      r
   r   c                   @   r   )PdfReadErrorz1Raised when there is an issue reading a PDF file.Nr   r   r   r   r	   r      r
   r   c                   @   r   )PageSizeNotDefinedErrorz;Raised when the page size of a PDF document is not defined.Nr   r   r   r   r	   r      r
   r   c                   @   r   )PdfReadWarningzTIssued when there is a potential issue reading a PDF file, but it can still be read.Nr   r   r   r   r	   r      r
   r   c                   @   r   )PdfStreamErrorzGRaised when there is an issue reading the stream of data in a PDF file.Nr   r   r   r   r	   r   #   r
   r   c                   @   r   )
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   c                   @   r   )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   .   r
   r   c                   @   r   )WrongPasswordErrorzORaised when the wrong password is used to try to decrypt an encrypted PDF file.Nr   r   r   r   r	   r   6   r
   r   c                   @   r   )EmptyFileErrorz2Raised when a PDF file is empty or has no content.Nr   r   r   r   r	   r   :   r
   r   zStream has ended unexpectedlyN)r   	Exceptionr   r   r   r   r   UserWarningr   r   r   r   r   r   STREAM_TRUNCATED_PREMATURELYr   r   r   r	   <module>   s    