Error code, a C long (Number, BigInt or boolean, as a Python int; defaults to GetLastError()).
A BigInt is stored in winerror as a Number, a boolean as is (Python keeps True).
Optionaldescr: string
Message (defaults to FormatError(code))
Error with winerror, errno (mapped as Python's OSError) and strerror
Create an Error object from a Windows error code (Windows only).
Python equivalent: ctypes.WinError()
Optionalcode: number | bigint
Error code, a C long (Number, BigInt or boolean, as a Python int; defaults to GetLastError()).
A BigInt is stored in winerror as a Number, a boolean as is (Python keeps True).
Optionaldescr: string
Message (defaults to FormatError(code))
Error with winerror, errno (mapped as Python's OSError) and strerror
Create an Error object from a Windows error code (Windows only).
Python equivalent:
ctypes.WinError()