
    li                     4    d Z  G d de      Z G d de      Zy))PdfiumErrorPdfiumWarningc                   $     e Zd ZdZd fd	Z xZS )r   a  
    An error from the (Py)PDFium library.
    
    When a PDFium API indicates failure (as detected by function return code), this exception will be raised.
    
    Attributes:
        err_code (int | None):
            PDFium error code, for programmatic handling of error subtypes, if provided by the API in question.
            Currently, only document loading distinguishes between different errors, whereas most APIs just return error or success, in which case this field will be None.
    c                 2    t         |   |       || _        y Nsuper__init__err_codeselfmsgr
   	__class__s      T/app/cer_product_mecsu/.venv/lib/python3.12/site-packages/pypdfium2/_helpers/misc.pyr	   zPdfiumError.__init__            r   __name__
__module____qualname____doc__r	   __classcell__r   s   @r   r   r      s    	! !r   r   c                   $     e Zd ZdZd fd	Z xZS )r   u4  
    A warning from the (Py)PDFium library.
    
    This is intended for error conditions that do not strictly necessitate raising an exception, but should still be exposed programmatically.
    
    Make sure you have configured the right warning level – otherwise, warnings might be hidden.
    
    Attributes:
        err_code (int | None):
            PDFium error code, for programmatic handling of error subtypes, if provided by the API in question. None otherwise.
            Currently, only XFA forms load failure provides this extra information.
    c                 2    t         |   |       || _        y r   r   r   s      r   r	   zPdfiumWarning.__init__&   r   r   r   r   r   s   @r   r   r      s    ! !r   r   N)__all__RuntimeErrorr   Warningr    r   r   <module>r      s$    +!< !"!W !r   