)Ej6GddeZGddeZGddeZGddeZGdd eZd S) ceZdZdS) FPDFExceptionN)__name__ __module__ __qualname__=C:\PYTHON\MyICR_Suite\python\Lib\site-packages\fpdf/errors.pyrrsDrrc NeZdZdZd dedededdffd Zdefd Zdefd ZxZ S) FPDFPageFormatExceptionz/Error is thrown when a bad page format is givenFargumentunknownonereturnNct|r|rtd||_||_||_dS)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 rz FPDFPageFormatException.__init__s[   s A !  rcP|jjd|jd|jd|jdS)N(z, ))rrr r rrs r __repr__z FPDFPageFormatException.__repr__sT~& C C  C C#'< C C59X C C C rc||jr d|j}n|jr d|jd}n|j}|jjd|S)NzUnknown page format: zOnly one argument given: z. Need (height,width)z: )r r rrr)rress r __str__zFPDFPageFormatException.__str__s[ < 9$-99CC X RdmRRRCC-C.)33c333r)FF) rrr__doc__strboolrrr __classcell__rs@r r r s99   t $ SW       #    444444444rr cLeZdZdZdedededdffd ZdefdZdefd ZxZ S) FPDFUnicodeEncodingExceptionzYError is thrown when a character that cannot be encoded by the chosen encoder is provided text_index character font_namerNcrt||_||_||_dS)N)rrr%r&r')rr%r&r'rs r rz%FPDFUnicodeEncodingException.__init__&s2 $""rc|jjdt|jt|jt|jfdS)Nrr)rrreprr%r&r'rs r rz%FPDFUnicodeEncodingException.__repr__,sF.)ppD,A,A4CWCWY]^b^lYmYm+npppprc8d|jd|jd|jdS)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 5T_ 5 5-1^ 5 5 5 r) rrrrintrrrrr!r"s@r r$r$#scc#3#3#3#4###### q#qqqq         rr$ceZdZdZdS)ComplianceErrorzDBase class for standards-compliance violations (PDF/A, PDF/X, etc.).Nrrrrrrr r.r.7sNNNNrr.ceZdZdZdS)PDFAComplianceErrorzVRaised when an operation would produce a PDF that violates the selected PDF/A profile.Nr/rrr r1r1;s````rr1N) Exceptionrr r$r.r1rrr r3s     I   44444m444<     =   (OOOOOmOOOaaaaa/aaaaar