Add InterruptedError for EINTR

This commit is contained in:
Antoine Pitrou 2011-07-27 00:44:35 +02:00
parent 089008558c
commit c15f626cbd
1 changed files with 4 additions and 0 deletions

View File

@ -376,6 +376,9 @@ the list of errnos mapped to them, is submitted to discussion:
for non-blocking operation (EAGAIN, EALREADY, EWOULDBLOCK, EINPROGRESS);
this is the existing ``io.BlockingIOError`` with an extended role
* ``InterruptedError``: a system call was interrupted by an incoming signal
(EINTR)
* ``ConnectionAbortedError``: connection attempt aborted by peer (ECONNABORTED)
* ``ConnectionRefusedError``: connection reset by peer (ECONNREFUSED)
@ -409,6 +412,7 @@ shown::
+-- FileNotFoundError ENOENT
+-- IsADirectoryError EISDIR
+-- NotADirectoryError ENOTDIR
+-- InterruptedError EINTR
+-- PermissionError EACCES, EPERM
+-- TimeoutError ETIMEDOUT