
    r)h                     F     " 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       FC:\Users\13-19\Desktop\Lekcja\testEnv\Lib\site-packages\fpdf/errors.pyr   r      s    r   r   c                   <   ^  \ rS rSrSrSU 4S jjrS rS rSrU =r	$ )FPDFPageFormatException   z/Error is thrown when a bad page format is givenc                 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__	TypeErrorargumentunknownone)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__r   r   r"   r
   __classcell__r   s   @r   r   r      s    9	
4 4r   r   c                   8   ^  \ rS rSrSrU 4S jrS rS rSrU =r	$ )FPDFUnicodeEncodingException#   zYError is thrown when a character that cannot be encoded by the chosen encoder is providedc                 F   > [         TU ]  5         Xl        X l        X0l        g )N)r   r   
text_index	character	font_name)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'   s   @r   r)   r)   #   s    c#q
 
r   r)   N)	Exceptionr   r   r)   r   r   r   <module>r6      s)   	I 	4m 4<
= 
r   