node-ctypes - v2.17.1
    Preparing search index...

    Function WinError

    • Create an Error object from a Windows error code (Windows only).

      Python equivalent: ctypes.WinError()

      Parameters

      • code: boolean

        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))

      Returns Error & { winerror: boolean; errno: number; strerror: string }

      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()

      Parameters

      • 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))

      Returns Error & { winerror: number; errno: number; strerror: string }

      Error with winerror, errno (mapped as Python's OSError) and strerror