exc – Exceptions

Exceptions

exception x_winsys(errno=None, errctx=None, errmsg=None)

Base for all WinSys exception. Subclasses pywintypes.error so that except pywintypes.error clauses can be used to catch all relevant exceptions. Note that the __init__ is specified so that exception invocations can pass just an error message by keyword.

exception x_access_denied(errno=None, errctx=None, errmsg=None)

General purpose access-denied exception

exception x_not_found(errno=None, errctx=None, errmsg=None)

General purpose not-found exception

exception x_invalid_handle(errno=None, errctx=None, errmsg=None)

General purpose invalid-handle exception

Functions

wrapper(winerror_map, default_exception=<class 'exc.x_winsys'>)

Used by each module to map specific windows error codes onto Python exceptions. Always includes a default which is raised if no specific exception is found.

Table Of Contents

Previous topic

constants

Next topic

accounts – Users, Groups, SIDs &c.

This Page