Python _ctypes.FormatError() Examples

The following are 20 code examples of _ctypes.FormatError(). You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may also want to check out all available functions/classes of the module _ctypes , or try the search function .
Example #1
Source File: __init__.py    From Splunking-Crime with GNU Affero General Public License v3.0 5 votes vote down vote up
def WinError(code=None, descr=None):
        if code is None:
            code = GetLastError()
        if descr is None:
            descr = FormatError(code).strip()
        return WindowsError(code, descr) 
Example #2
Source File: __init__.py    From canape with GNU General Public License v3.0 5 votes vote down vote up
def WinError(code=None, descr=None):
        if code is None:
            code = GetLastError()
        if descr is None:
            descr = FormatError(code).strip()
        return WindowsError(code, descr) 
Example #3
Source File: __init__.py    From android_universal with MIT License 5 votes vote down vote up
def WinError(code=None, descr=None):
        if code is None:
            code = GetLastError()
        if descr is None:
            descr = FormatError(code).strip()
        return OSError(None, descr, None, code) 
Example #4
Source File: __init__.py    From unity-python with MIT License 5 votes vote down vote up
def WinError(code=None, descr=None):
        if code is None:
            code = GetLastError()
        if descr is None:
            descr = FormatError(code).strip()
        return WindowsError(code, descr) 
Example #5
Source File: __init__.py    From PokemonGo-DesktopMap with MIT License 5 votes vote down vote up
def WinError(code=None, descr=None):
        if code is None:
            code = GetLastError()
        if descr is None:
            descr = FormatError(code).strip()
        return WindowsError(code, descr) 
Example #6
Source File: __init__.py    From Carnets with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
def WinError(code=None, descr=None):
        if code is None:
            code = GetLastError()
        if descr is None:
            descr = FormatError(code).strip()
        return OSError(None, descr, None, code) 
Example #7
Source File: __init__.py    From RevitBatchProcessor with GNU General Public License v3.0 5 votes vote down vote up
def WinError(code=None, descr=None):
        if code is None:
            code = GetLastError()
        if descr is None:
            descr = FormatError(code).strip()
        return WindowsError(code, descr) 
Example #8
Source File: __init__.py    From filmkodi with Apache License 2.0 5 votes vote down vote up
def WinError(code=None, descr=None):
        if code is None:
            code = GetLastError()
        if descr is None:
            descr = FormatError(code).strip()
        return WindowsError(code, descr) 
Example #9
Source File: __init__.py    From odoo13-x64 with GNU General Public License v3.0 5 votes vote down vote up
def WinError(code=None, descr=None):
        if code is None:
            code = GetLastError()
        if descr is None:
            descr = FormatError(code).strip()
        return OSError(None, descr, None, code) 
Example #10
Source File: __init__.py    From Project-New-Reign---Nemesis-Main with GNU General Public License v3.0 5 votes vote down vote up
def WinError(code=None, descr=None):
        if code is None:
            code = GetLastError()
        if descr is None:
            descr = FormatError(code).strip()
        return OSError(None, descr, None, code) 
Example #11
Source File: __init__.py    From meddle with MIT License 5 votes vote down vote up
def WinError(code=None, descr=None):
        if code is None:
            code = GetLastError()
        if descr is None:
            descr = FormatError(code).strip()
        return WindowsError(code, descr) 
Example #12
Source File: __init__.py    From datafari with Apache License 2.0 5 votes vote down vote up
def WinError(code=None, descr=None):
        if code is None:
            code = GetLastError()
        if descr is None:
            descr = FormatError(code).strip()
        return WindowsError(code, descr) 
Example #13
Source File: __init__.py    From ironpython3 with Apache License 2.0 5 votes vote down vote up
def WinError(code=None, descr=None):
        if code is None:
            code = GetLastError()
        if descr is None:
            descr = FormatError(code).strip()
        return OSError(None, descr, None, code) 
Example #14
Source File: __init__.py    From Imogen with MIT License 5 votes vote down vote up
def WinError(code=None, descr=None):
        if code is None:
            code = GetLastError()
        if descr is None:
            descr = FormatError(code).strip()
        return OSError(None, descr, None, code) 
Example #15
Source File: __init__.py    From Fluid-Designer with GNU General Public License v3.0 5 votes vote down vote up
def WinError(code=None, descr=None):
        if code is None:
            code = GetLastError()
        if descr is None:
            descr = FormatError(code).strip()
        return OSError(None, descr, None, code) 
Example #16
Source File: __init__.py    From PyDev.Debugger with Eclipse Public License 1.0 5 votes vote down vote up
def WinError(code=None, descr=None):
        if code is None:
            code = GetLastError()
        if descr is None:
            descr = FormatError(code).strip()
        return WindowsError(code, descr) 
Example #17
Source File: __init__.py    From oss-ftp with MIT License 5 votes vote down vote up
def WinError(code=None, descr=None):
        if code is None:
            code = GetLastError()
        if descr is None:
            descr = FormatError(code).strip()
        return WindowsError(code, descr) 
Example #18
Source File: __init__.py    From Computable with MIT License 5 votes vote down vote up
def WinError(code=None, descr=None):
        if code is None:
            code = GetLastError()
        if descr is None:
            descr = FormatError(code).strip()
        return WindowsError(code, descr) 
Example #19
Source File: __init__.py    From BinderFilter with MIT License 5 votes vote down vote up
def WinError(code=None, descr=None):
        if code is None:
            code = GetLastError()
        if descr is None:
            descr = FormatError(code).strip()
        return WindowsError(code, descr) 
Example #20
Source File: __init__.py    From ironpython2 with Apache License 2.0 5 votes vote down vote up
def WinError(code=None, descr=None):
        if code is None:
            code = GetLastError()
        if descr is None:
            descr = FormatError(code).strip()
        return WindowsError(code, descr)