Add ChildProcessError and ProcessLookupError
This commit is contained in:
parent
3ceecd9e7e
commit
a17354feff
|
@ -396,6 +396,12 @@ the list of errnos mapped to them, is submitted to discussion:
|
||||||
as a generic timeout exception, replacing ``socket.timeout`` and also useful
|
as a generic timeout exception, replacing ``socket.timeout`` and also useful
|
||||||
for other types of timeout (for example in Lock.acquire())
|
for other types of timeout (for example in Lock.acquire())
|
||||||
|
|
||||||
|
* ``ChildProcessError``: operation on a child process failed (ECHILD);
|
||||||
|
this is raised mainly by the wait() family of functions.
|
||||||
|
|
||||||
|
* ``ProcessLookupError``: the given process (as identified by, e.g., its
|
||||||
|
process id) doesn't exist (ESRCH).
|
||||||
|
|
||||||
In addition, the following exception class is proposed for inclusion:
|
In addition, the following exception class is proposed for inclusion:
|
||||||
|
|
||||||
* ``ConnectionError``: a base class for ``ConnectionAbortedError``,
|
* ``ConnectionError``: a base class for ``ConnectionAbortedError``,
|
||||||
|
@ -407,6 +413,7 @@ sub-hierarchy (OSError, assuming `Step 1`_ is accepted in full) is not
|
||||||
shown::
|
shown::
|
||||||
|
|
||||||
+-- BlockingIOError EAGAIN, EALREADY, EWOULDBLOCK, EINPROGRESS
|
+-- BlockingIOError EAGAIN, EALREADY, EWOULDBLOCK, EINPROGRESS
|
||||||
|
+-- ChildProcessError ECHILD
|
||||||
+-- ConnectionError
|
+-- ConnectionError
|
||||||
+-- BrokenPipeError EPIPE, ESHUTDOWN
|
+-- BrokenPipeError EPIPE, ESHUTDOWN
|
||||||
+-- ConnectionAbortedError ECONNABORTED
|
+-- ConnectionAbortedError ECONNABORTED
|
||||||
|
@ -418,6 +425,7 @@ shown::
|
||||||
+-- IsADirectoryError EISDIR
|
+-- IsADirectoryError EISDIR
|
||||||
+-- NotADirectoryError ENOTDIR
|
+-- NotADirectoryError ENOTDIR
|
||||||
+-- PermissionError EACCES, EPERM
|
+-- PermissionError EACCES, EPERM
|
||||||
|
+-- ProcessLookupError ESRCH
|
||||||
+-- TimeoutError ETIMEDOUT
|
+-- TimeoutError ETIMEDOUT
|
||||||
|
|
||||||
Naming
|
Naming
|
||||||
|
|
Loading…
Reference in New Issue