twisted.python.win32._ErrorFormatter(object) class documentationtwisted.python.win32
(View In Hierarchy)
Formatter for Windows error messages.
| Instance Variable | winError | A callable which takes one integer error number argument and returns an exceptions.WindowsErrorinstance for that error (likectypes.WinError). | 
| Instance Variable | formatMessage | A callable which takes one integer error number argument and returns a strgiving the message for that error (likewin32api.FormatMessage). | 
| Instance Variable | errorTab | A mapping from integer error numbers to strmessages which 
correspond to those erorrs (like socket.errorTab). | 
| Method | __init__ | Undocumented | 
| Class Method | fromEnvironment | Get as many of the platform-specific error translation objects as 
possible and return an instance of clscreated with them. | 
| Method | formatError | Returns the string associated with a Windows error message, such as the ones found in socket.error. | 
exceptions.WindowsError
instance for that error (like ctypes.WinError).
  str giving the message for that error (like 
win32api.FormatMessage).
  str messages which 
correspond to those erorrs (like socket.errorTab).
  Get as many of the platform-specific error translation objects as 
possible and return an instance of cls created with them.
Returns the string associated with a Windows error message, such as the ones found in socket.error.
Attempts direct lookup against the win32 API via ctypes and then pywin32
if available), then in the error table in the socket module, then finally 
defaulting to os.strerror.
| Parameters | errorcode | the Windows error code (type: int) | 
| Returns | The error message string (type: str) | |