home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2010 November / maximum-cd-2010-11.iso / DiscContents / calibre-0.7.13.msi / file_1987 (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2010-08-06  |  1.4 KB  |  38 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 2.6)
  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
  19.                 self.strerror = win32api.FormatMessage(self.errno).strip()
  20.             self.strerror = 'no error message is available'
  21.  
  22.         
  23.         return str((self.errno, self.strerror, self.funcname))
  24.  
  25.  
  26.  
  27. class FilterError(ISAPIError):
  28.     pass
  29.  
  30.  
  31. class ExtensionError(ISAPIError):
  32.     pass
  33.  
  34.  
  35. class InternalReloadException(Exception):
  36.     pass
  37.  
  38.