a „oe¨ ã@sBdZddlZddlZGdd„dejƒZeZd dd„Zd dd„ZdS) aÐException Handling Exceptions To better support COM exceptions, the framework allows for an instance to be raised. This instance may have a certain number of known attributes, which are translated into COM exception details. This means, for example, that Python could raise a COM exception that includes details on a Help file and location, and a description for the user. This module provides a class which provides the necessary attributes. éNc@s"eZdZdZddd„Zdd„ZdS)Ú COMExceptionaáAn Exception object that is understood by the framework. If the framework is presented with an exception of type class, it looks for certain known attributes on this class to provide rich error information to the caller. It should be noted that the framework supports providing this error information via COM Exceptions, or via the ISupportErrorInfo interface. By using this class, you automatically provide rich error information to the server. NcCs˜|p|}|r0|dkr0|dkr0|dkr0d|d@B}||_|p<||_|dkrV|jsVd|_n|rl|jslt |¡|_||_||_||_tj |||jdd¡dS) aXInitialize an exception **Params** description -- A string description for the exception. scode -- An integer scode to be returned to the server, if necessary. The pythoncom framework defaults this to be DISP_E_EXCEPTION if not specified otherwise. source -- A string which identifies the source of the error. helpfile -- A string which points to a help file which contains details on the error. helpContext -- An integer context in the help file. desc -- A short-cut for description. hresult -- A short-cut for scode. éi€ÿÿi€i€iÿÿZS_FALSENéÿÿÿÿ) ÚscodeÚ descriptionÚ pythoncomZGetScodeStringÚsourceÚhelpfileZ helpcontextÚ com_errorÚ__init__)Úselfrrrr Z helpContextZdescZhresult©r ú:C:\Program Files\Certbot\pkgs\win32com\server\exception.pyr $s     zCOMException.__init__cCsd|j|jfS)Nz#)rr)r r r rÚ__repr__PszCOMException.__repr__)NNNNNNN)Ú__name__Ú __module__Ú __qualname__Ú__doc__r rr r r rrsø ,rcCsD|durt ¡d}zt|tjƒWSty>|tjuYS0dS©Nr)ÚsysÚexc_infoÚ issubclassrr Ú TypeErrorZ pythoncon©Útr r rÚIsCOMExceptionZs   rcCs:|durt ¡d}z t|tƒWSty4YdS0dSr)rrrrrrr r rÚIsCOMServerExceptioncs    r)N)N)rrrr rÚ Exceptionrrr r r rÚs A