Ñò rê$Lc@sÎdZdZddkZddkZdefd„ƒYZdefd„ƒYZdefd „ƒYZd efd „ƒYZ d efd „ƒYZ de fd„ƒYZ defd„ƒYZ dd„ZdS(sjSCons.Errors This file contains the exception classes used to handle internal and user errors in SCons. s9src/engine/SCons/Errors.py 5023 2010/06/14 22:05:46 sconsiÿÿÿÿNt BuildErrorc Bs;eZdZdddddddddd„ Zd„ZRS(s Errors occuring while building. BuildError have the following attributes: Information about the cause of the build error: ----------------------------------------------- errstr : a description of the error message status : the return code of the action that caused the build error. Must be set to a non-zero value even if the build error is not due to an action returning a non-zero returned code. exitstatus : SCons exit status due to this build error. Must be nonzero unless due to an explicit Exit() call. Not always the same as status, since actions return a status code that should be respected, but SCons typically exits with 2 irrespective of the return value of the failed action. filename : The name of the file or directory that caused the build error. Set to None if no files are associated with this error. This might be different from the target being built. For example, failure to create the directory in which the target file will appear. It can be None if the error is not due to a particular filename. exc_info : Info about exception that caused the build error. Set to (None, None, None) if this build error is not due to an exception. Information about the cause of the location of the error: --------------------------------------------------------- node : the error occured while building this target node(s) executor : the executor that caused the build to fail (might be None if the build failures is not due to the executor failing) action : the action that caused the build to fail (might be None if the build failures is not due to the an action failure) command : the command line for the action that caused the build to fail (might be None if the build failures is not due to the an action failure) s Unknown erroric Cs}||_||_||_||_| |_||_||_||_||_t i |||||||||| ƒ dS(N( terrstrtstatust exitstatustfilenametexc_infotnodetexecutortactiontcommandt Exceptiont__init__( tselfRRRRRRRR R((s/install/lib/scons-2.0.0.final.0/SCons/Errors.pyR [s         cCs(|io|id|iS|iSdS(Ns: (RR(R ((s/install/lib/scons-2.0.0.final.0/SCons/Errors.pyt__str__ns N(NNN(t__name__t __module__t__doc__tNoneR R (((s/install/lib/scons-2.0.0.final.0/SCons/Errors.pyR%s 4   t InternalErrorcBseZRS((RR(((s/install/lib/scons-2.0.0.final.0/SCons/Errors.pyRtst UserErrorcBseZRS((RR(((s/install/lib/scons-2.0.0.final.0/SCons/Errors.pyRwst StopErrorcBseZRS((RR(((s/install/lib/scons-2.0.0.final.0/SCons/Errors.pyRzstEnvironmentErrorcBseZRS((RR(((s/install/lib/scons-2.0.0.final.0/SCons/Errors.pyR}st MSVCErrorcBseZRS((RR(((s/install/lib/scons-2.0.0.final.0/SCons/Errors.pyR€st ExplicitExitcBseZddd„ZRS(cGs/||_||_||_ti||ŒdS(N(RRRR R (R RRtargs((s/install/lib/scons-2.0.0.final.0/SCons/Errors.pyR „s   N(RRRR (((s/install/lib/scons-2.0.0.final.0/SCons/Errors.pyRƒscCsá| o&t|tƒo|i|d f}nt|tƒo|}d|_nt|tƒo8|i}d|}td|d|d|d|ƒ}nEt|tt fƒo+tdt |ƒddddd|ƒ}nt|t i ƒoZy |i }Wntj o d }nXtd|id|iddd|d|ƒ}n—t|tƒo5tdd|ii|fddddd|ƒ}nRtii|ƒotd|ddddƒ}n tdd |d|ddƒ}|S( sß Convert any return code a BuildError Exception. `status' can either be a return code or an Exception. The buildError.status we set here will normally be used as the exit status of the "scons" process. isExplicit exit, status %sRRRRRs%s : %ssError %sN(t isinstanceR t __class__RRRRRRRtstrt exceptionsRRtAttributeErrortstrerrorterrnoRtSConstUtilt is_String(RRt buildErrorRR((s/install/lib/scons-2.0.0.final.0/SCons/Errors.pytconvert_to_BuildErrorŠs\               (Rt __revision__t SCons.UtilR RR RRRRRtIOErrorRRRR$(((s/install/lib/scons-2.0.0.final.0/SCons/Errors.pyts  O