mň x%ÜGc@sÖdZdkZdkZdkZdefd„ƒYZdefd„ƒYZdfd„ƒYZdfd „ƒYZd fd „ƒYZ d fd „ƒYZ dfd„ƒYZ dfd„ƒYZ dfd„ƒYZ dS(s Various Spyce-related exceptionsNt HandlerErrorcBs)tZddd„Zd„Zd„ZRS(NcCs||_||_dS(N(telementtselft description(RRR((t2/home/holguin2/public_html/spyce/spyceException.pyt__init__s cCs t|ƒS(N(treprR(R((Rt__str__scCsd|i|ifS(NsHandlerError(%r, %r)(RRR(R((Rt__repr__s(t__name__t __module__tNoneRRR(((RR s tCompoundHandlerErrorcBs/tZdd„Zd„Zd„Zd„ZRS(NcCs$|djo g}n||_dS(N(t sub_errorsR R(RR ((RRs  cCs|ii|ƒdS(N(RR tappendterr(RR((RtaddscCs t|iƒS(N(tlenRR (R((Rt__len__scCs d|iS(NsCompoundHandlerError(%r)(RR (R((RRs(R R R RRRR(((RR s   tpythonSyntaxErrorcBs tZdZd„Zd„ZRS(s:Generate string out of current pythonSyntaxError exceptioncCs|iS(N(Rtstr(R((RR(sc Csěd|_tiƒ\}}} ||tƒjod| ‚n|i ƒi |i ƒo€|i ƒ|i \}}}}|d|djot|dƒ}nd|d|df}d|||i|f|_ntiƒ|_dS(Nts>instantiate pythonSyntaxError only when SyntaxError raised: %sis%d-%ds'Python syntax error at %s:%s - %s %s (RRtsystexc_infottypeterrort_t SyntaxErrort spycewrapt getCodeRefsthas_keytlinenotbegintendttexttfilenametlinestrtmsgt spyceUtiltexceptionString( RRR R!R"R#RR$RR((RR*s  (R R t__doc__RR(((RR&s  tspyceSyntaxErrorcBs#tZdZed„Zd„ZRS(s9Generate string out of current spyceSyntaxError exceptioncCs||_||_dS(N(R%Rtinfo(RR%R*((RR;s cCs”d}|ioo|i\\}}\}}}}||jot|ƒ}nd||f}|d|||i |f}n|d|i }|S(NsSpyce syntax errors%d-%ds at %s:%s - %s %s s: ( tsRR*R RR!R"R#RR$R%(RR R!R"R#R+R$R((RR>s ! !(R R R(R RR(((RR)9s  tspyceRuntimeExceptioncBs#tZdZd„Zed„ZRS(s8Generate string out of current SpyceException exception.cCs|iS(N(RR(R((RRRscCskdk}dk} dk}dk} tiƒ\} } } |i | ƒ} d|_ | | | |_ |_ |_| tjot | ƒ|_n| i|i| | ƒƒ|_xptt| ƒƒD]\}| |\}}}}d}|djoG|o@|iƒi|ƒo*|| ijo d}n|iƒ}n.y|iƒi |}Wnt!j onX|oy||\}}}}Wn.t!j o"|i$d|ƒd|}qůX|d|djot |dƒ}qůd|d|df}nt |ƒ}||||f| |s(main)scoderefs are %ss%s???is%d-%ds %s:%s, in %s: %s (%tspycet spyceCompilet tracebacktstringRRte1te2ttbt extract_tbRRRtvalueR,R%tjointformat_exception_onlytrangeRtiR#RtfuncnameR"R tcoderefsRRRtSPYCE_PROCESS_FUNCt getServertmodule_coderefstKeyErrorR R!tDEBUG(RRR"R R-R!R#RR;R3R0R.R1R2R9R/R:((RRTsH  *  (R R R(RR R(((RR,Os  t spyceNotFoundcBs tZdZd„Zd„ZRS(s9Exception class to signal that Spyce file does not exist.cCs ||_dS(N(tfileR(RRB((RR~scCs d|iS(Ns,spyceNotFound exception: could not find "%s"(RRB(R((RR€s(R R R(RR(((RRA|s  tspyceForbiddencBs tZdZd„Zd„ZRS(s>Exception class to signal that Spyce file has access problems.cCs ||_dS(N(RBR(RRB((RR…scCs d|iS(Ns-spyceForbidden exception: could not read "%s"(RRB(R((RR‡s(R R R(RR(((RRCƒs  t spyceRedirectcBs tZdZd„Zd„ZRS(s/Exception class to signal an internal redirect.cCs ||_dS(N(R#R(RR#((RRscCs d|iS(NsspyceRedirect: "%s"(RR#(R((RR’s(R R R(RR(((RRDŽs  t spyceDonecBstZdZRS(sIException class to immediately jump to the end of the spyceProcess method(R R R((((RRE•s (R(RR0R&t ExceptionRR RR)R,RARCRDRE( R,RER0R&RDRAR)RRR RRCR(((Rt?s  -