� J�g���Z�Gd�de��ZGd�de��ZGd�de��ZdS)c��eZdZdS)� FPDFExceptionN)�__name__� __module__� __qualname__���[/home/asafur/pinokio/api/open-webui.git/app/env/lib/python3.11/site-packages/fpdf/errors.pyrrs�������Drrc�0��eZdZdZd�fd� Zd�Zd�Z�xZS)�FPDFPageFormatExceptionz/Error is thrown when a bad page format is givenFc���t�����|r|rtd���||_||_||_dS)Nz\FPDF Page Format Exception cannot be both for unknown type and for wrong number of arguments)�super�__init__� TypeError�argument�unknown�one)�selfrrr� __class__s �r rz FPDFPageFormatException.__init__s[��� �������� � �s� ��A��� �!�� ��� �����rc�P�|jj�d|j�d|j�d|j�d�S)N�(z, �))rrrrr�rs r �__repr__z FPDFPageFormatException.__repr__sT���~�&� C� C�� � C� C�#'�<� C� C�59�X� C� C� C� rc�|�|jr d|j��}n|jr d|j�d�}n|j}|jj�d|��S)NzUnknown page format: zOnly one argument given: z. Need (height,width)z: )rrrrr)r�ress r �__str__zFPDFPageFormatException.__str__s[�� �<� �9�$�-�9�9�C�C� �X� �R�d�m�R�R�R�C�C��-�C��.�)�3�3�c�3�3�3r)FF�rrr�__doc__rrr� __classcell__�rs@r r r sa�������9�9� � � � � � � � � � 4�4�4�4�4�4�4rr c�.��eZdZdZ�fd�Zd�Zd�Z�xZS)�FPDFUnicodeEncodingExceptionzYError is thrown when a character that cannot be encoded by the chosen encoder is providedc�r��t�����||_||_||_dS)N)r r� text_index� character� font_name)rr$r%r&rs �r rz%FPDFUnicodeEncodingException.__init__&s2��� ��������$���"���"����rc��|jj�dt|j��t|j��t|j��f�d�S)Nrr)rr�reprr$r%r&rs r rz%FPDFUnicodeEncodingException.__repr__,sF���.�)�p�p�D���,A�,A�4���CW�CW�Y]�^b�^l�Ym�Ym�+n�p�p�p�prc�8�d|j�d|j�d|j�d�S)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&rs r rz$FPDFUnicodeEncodingException.__str__/s<�� 5�$�.� 5� 5�T�_� 5� 5�-1�^� 5� 5� 5� rrr s@r r"r"#s_�������c�c�#�#�#�#�#� q�q�q� � � � � � � rr"N)� Exceptionrr r"rrr �<module>r+s��� � � � � �I� � � �4�4�4�4�4�m�4�4�4�< � � � � �=� � � � � r
Memory