
    F j6                     r     " S  S\ 5      r " S S\5      r " S S\5      r " S S\5      r " S S	\5      rg
)c                       \ rS rSrSrg)FPDFException    N)__name__
__module____qualname____firstlineno____static_attributes__r       \/root/GenerationalWealth/GenerationalWealth/venv/lib/python3.13/site-packages/fpdf/errors.pyr   r      s    r   r   c            	       `   ^  \ rS rSrSrSS\S\S\SS4U 4S jjjrS\4S	 jrS\4S
 jr	Sr
U =r$ )FPDFPageFormatException   z/Error is thrown when a bad page format is givenargumentunknownonereturnNc                 x   > [         TU ]  5         U(       a  U(       a  [        S5      eXl        X l        X0l        g )Nz\FPDF Page Format Exception cannot be both for unknown type and for wrong number of arguments)super__init__	TypeErrorr   r   r   )selfr   r   r   	__class__s       r   r    FPDFPageFormatException.__init__   s7    sA  !r   c                     U R                   R                   SU R                  < SU R                  < SU R                  < S3$ )N(z, ))r   r   r   r   r   r   s    r   __repr__ FPDFPageFormatException.__repr__   s@    ~~&&' 4<<"2"TXXLC	
r   c                     U R                   (       a  SU R                   3nO.U R                  (       a  SU R                   S3nOU R                  nU R                  R                   SU 3$ )NzUnknown page format: zOnly one argument given: z. Need (height,width)z: )r   r   r   r   r   )r   ress     r   __str__FPDFPageFormatException.__str__   sX    <<)$--9CXX-dmm_<QRC--C..))+2cU33r   )r   r   r   )FF)r   r   r   r	   __doc__strboolr   r   r#   r
   __classcell__r   s   @r   r   r      sJ    9	 	t 	$ 	SW 	 	
# 
4 4 4r   r   c                   \   ^  \ rS rSrSrS\S\S\SS4U 4S jjrS\4S	 jrS\4S
 jr	Sr
U =r$ )FPDFUnicodeEncodingException#   zYError is thrown when a character that cannot be encoded by the chosen encoder is provided
text_index	character	font_namer   Nc                 F   > [         TU ]  5         Xl        X l        X0l        g )N)r   r   r-   r.   r/   )r   r-   r.   r/   r   s       r   r   %FPDFUnicodeEncodingException.__init__&   s    $""r   c                     U R                   R                   S[        U R                  5      [        U R                  5      [        U R
                  5      4 S3$ )Nr   r   )r   r   reprr-   r.   r/   r   s    r   r   %FPDFUnicodeEncodingException.__repr__,   sH    ..))*!D,A4CWY]^b^l^lYm,m+nnoppr   c                 V    SU R                    SU R                   SU R                   S3$ )NzCharacter "z" at index zI in text is outside the range of characters supported by the font used: "z(". Please consider using a Unicode font.)r.   r-   r/   r   s    r   r#   $FPDFUnicodeEncodingException.__str__/   s8    $..)T__4E F--1^^,< =55	
r   )r.   r/   r-   )r   r   r   r	   r%   intr&   r   r   r#   r
   r(   r)   s   @r   r+   r+   #   sF    c#3 #3 #3 #4 #q# q
 
 
r   r+   c                       \ rS rSrSrSrg)ComplianceError7   zDBase class for standards-compliance violations (PDF/A, PDF/X, etc.).r   Nr   r   r   r	   r%   r
   r   r   r   r9   r9   7   s    Nr   r9   c                       \ rS rSrSrSrg)PDFAComplianceError;   zVRaised when an operation would produce a PDF that violates the selected PDF/A profile.r   Nr;   r   r   r   r=   r=   ;   s    `r   r=   N)	Exceptionr   r   r+   r9   r=   r   r   r   <module>r@      sE   	I 	4m 4<
= 
(Om Oa/ ar   