U
    ß¦whÌ  ã                   @   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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                   @   s   e Zd ZdZdS )ÚDeprecationErrorz)Raised when a deprecated feature is used.N©Ú__name__Ú
__module__Ú__qualname__Ú__doc__© r   r   ú0/tmp/pip-unpacked-wheel-r8zeli8p/pypdf/errors.pyr      s   r   c                   @   s   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	      s   r	   c                   @   s   e Zd ZdZdS )Ú
PyPdfErrorz.Base class for all exceptions raised by pypdf.Nr   r   r   r   r   r
      s   r
   c                   @   s   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   c                   @   s   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   r   c                   @   s   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   c                   @   s   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   r   c                   @   s   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   '   s   r   c                   @   s   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   c                   @   s   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   r   c                   @   s   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   c                   @   s   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   r   zStream has ended unexpectedlyN)r   Ú	Exceptionr   r	   r
   r   r   ÚUserWarningr   r   r   r   r   r   r   ZSTREAM_TRUNCATED_PREMATURELYr   r   r   r   Ú<module>   s   