home *** CD-ROM | disk | FTP | other *** search
/ Freelog 116 / FreelogNo116-JuilletSeptembre2013.iso / Bureautique / gImageReader / gimagereader_0.9-1_win32.exe / bin / isapi / __init__.pyc (.txt)
Python Compiled Bytecode  |  2011-03-24  |  1KB  |  37 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 2.7)
  3.  
  4.  
  5. class ISAPIError(Exception):
  6.     
  7.     def __init__(self, errno, strerror = None, funcname = None):
  8.         self.errno = errno
  9.         self.strerror = strerror
  10.         self.funcname = funcname
  11.         Exception.__init__(self, errno, strerror, funcname)
  12.  
  13.     
  14.     def __str__(self):
  15.         if self.strerror is None:
  16.             
  17.             try:
  18.                 import win32api as win32api
  19.                 self.strerror = win32api.FormatMessage(self.errno).strip()
  20.             self.strerror = 'no error message is available'
  21.  
  22.         return str((self.errno, self.strerror, self.funcname))
  23.  
  24.  
  25.  
  26. class FilterError(ISAPIError):
  27.     pass
  28.  
  29.  
  30. class ExtensionError(ISAPIError):
  31.     pass
  32.  
  33.  
  34. class InternalReloadException(Exception):
  35.     pass
  36.  
  37.