L i GddeZGddeZGddeZGddeZGdd eZGd d eZGd d eZy)ceZdZdZy)Errorz0Base Cu2Qu exception class for all other errors.N)__name__ __module__ __qualname____doc__\/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/fontTools/cu2qu/errors.pyrrs:r rceZdZfdZxZS)ApproxNotFoundErrorc<d|z}t||||_y)Nzno approximation found: %s)super__init__curve)selfrmessage __class__s r rzApproxNotFoundError.__init__s!.6 ! r )rrrr __classcell__)rs@r r r s r r c eZdZy)UnequalZipLengthsErrorN)rrrrr r rrsr rceZdZdZdZy)IncompatibleGlyphsErrorct|dkDsJ||_td|D}t|dkDr#ddjt |z|_y|j |_y)Nc3FK|]}t|jywN)reprname.0gs r z3IncompatibleGlyphsError.__init__..#s1QDL1s!z{%s}, )lenglyphssetjoinsorted combined_namepop)rr%namess r rz IncompatibleGlyphsError.__init__ s\6{Q 1&11 u:>!'$))F5M*B!BD !&D r cNdt|jd|jdS)N< >)typerr)rs r __repr__z IncompatibleGlyphsError.__repr__)s J//1C1CDDr N)rrrrr2rr r rrs -Er rceZdZdZy)IncompatibleSegmentNumberErrorc d|jzS)Nz1Glyphs named %s have different number of segments)r)r1s r __str__z&IncompatibleSegmentNumberError.__str__.sB     r N)rrrr6rr r r4r4-s r r4ceZdZdZdZy)IncompatibleSegmentTypesErrorc>tj||||_yr)rrsegments)rr%r:s r rz&IncompatibleSegmentTypesError.__init__5s((v6  r c vg}ttt|j}t |jj D]J\}}|j t|j|ddjd|DdLd|jddj|S)Nz: (r#c32K|]}t|ywrr)r ts r r"z8IncompatibleSegmentTypesError.__str__..>s>U1tAw>U)z Glyphs named z$ have incompatible segment types: z ) r$strmaxr:r(itemsappendrjustr'r))rlinesndigitsitagss r r6z%IncompatibleSegmentTypesError.__str__9sc#dmm,-.dmm1134 GAt LL!!fll73TYY>UPT>U5UV      KK   r Nrrrrr6rr r r8r84s !  r r8ceZdZdZdZy)IncompatibleFontsErrorc||_yr) glyph_errors)rrNs r rzIncompatibleFontsError.__init__Gs (r czddjdt|jjDzS)Nz&fonts contains incompatible glyphs: %sr#c32K|]}t|ywrr=rs r r"z1IncompatibleFontsError.__str__..LsH!d1gHr?)r'r(rNkeysr1s r r6zIncompatibleFontsError.__str__Js57 IIHvd.?.?.D.D.F'GH H  r NrJrr r rLrLFs ) r rLN) Exceptionrr rrr4r8rLrr r rSs] ;I;% U  Ee E %<  $; $ U r