wslwinreg
Loading...
Searching...
No Matches
wslwinreg.cygwinapi.WindowsError Class Reference

This exception doesn't exist in Cygwin/MSYS, provide it. More...

Inheritance diagram for wslwinreg.cygwinapi.WindowsError:
Collaboration diagram for wslwinreg.cygwinapi.WindowsError:

Public Member Functions

 __init__ (self, winerror, strerror=None, filename=None)
 Initialize a WindowsError exception.
 __str__ (self)
 Convert the class into a string.

Public Attributes

 winerror = winerror
 Windows error code.
 errno = winerror_to_errno(winerror)
 Linux style error code.
 strerror = strerror
 Description string of the error.
 filename = filename
 Name of the responsible file for this error.

Detailed Description

This exception doesn't exist in Cygwin/MSYS, provide it.

Constructor & Destructor Documentation

◆ __init__()

wslwinreg.cygwinapi.WindowsError.__init__ ( self,
winerror,
strerror = None,
filename = None )

Initialize a WindowsError exception.

Parameters
winerrorThe windows error code
strerrorThe string describing the error
filenameName of the file that caused this error, if applicable.

Member Function Documentation

◆ __str__()

wslwinreg.cygwinapi.WindowsError.__str__ ( self)

Convert the class into a string.

Returns
String describing the error contained.