
    HAi                        S r  " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S	 S
\5      r " S S\5      r " S S\5      r	 " S S\5      r
 " S S\5      r " S S\5      r " S S\5      r " S S\5      rSrg)z
All errors/exceptions pypdf raises and all of the warnings it uses.

Please note that broken PDF files might cause other Exceptions.
c                       \ rS rSrSrSrg)DeprecationError   z)Raised when a deprecated feature is used. N__name__
__module____qualname____firstlineno____doc____static_attributes__r       H/var/www/html/land-ocr/venv/lib/python3.13/site-packages/pypdf/errors.pyr   r      s    3r   r   c                       \ rS rSrSrSrg)DependencyError   zw
Raised when a required dependency (a library or module that pypdf depends on)
is not available or cannot be imported.
r   Nr   r   r   r   r   r          r   r   c                       \ rS rSrSrSrg)
PyPdfError   z.Base class for all exceptions raised by pypdf.r   Nr   r   r   r   r   r      s    8r   r   c                       \ rS rSrSrSrg)PdfReadError   z1Raised when there is an issue reading a PDF file.r   Nr   r   r   r   r   r      s    ;r   r   c                       \ rS rSrSrSrg)PageSizeNotDefinedError   z;Raised when the page size of a PDF document is not defined.r   Nr   r   r   r   r   r      s    Er   r   c                       \ rS rSrSrSrg)PdfReadWarning   zTIssued when there is a potential issue reading a PDF file, but it can still be read.r   Nr   r   r   r   r   r      s    ^r   r   c                       \ rS rSrSrSrg)PdfStreamError#   zGRaised when there is an issue reading the stream of data in a PDF file.r   Nr   r   r   r   r    r    #   s    Qr   r    c                       \ rS rSrSrSrg)
ParseError'   zn
Raised when there is an issue parsing (analyzing and understanding the
structure and meaning of) a PDF file.
r   Nr   r   r   r   r#   r#   '   r   r   r#   c                       \ rS rSrSrSrg)FileNotDecryptedError.   z
Raised when a PDF file that has been encrypted
(meaning it requires a password to be accessed) has not been successfully
decrypted.
r   Nr   r   r   r   r&   r&   .   s    r   r&   c                       \ rS rSrSrSrg)WrongPasswordError6   zORaised when the wrong password is used to try to decrypt an encrypted PDF file.r   Nr   r   r   r   r)   r)   6   s    Yr   r)   c                       \ rS rSrSrSrg)EmptyFileError:   z2Raised when a PDF file is empty or has no content.r   Nr   r   r   r   r,   r,   :   s    <r   r,   c                       \ rS rSrSrSrg)EmptyImageDataError>   z8Raised when trying to process an image that has no data.r   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>r4      s   4y 4i 9 9<: <Fj F_[ _R\ R L Z. Z=\ =C* C  ? r   