diff options
author | Andrew Svetlov <andrew.svetlov@gmail.com> | 2018-01-19 18:04:29 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-19 18:04:29 (GMT) |
commit | 7464e87a6511d3626b04c9833a262a77b1f21e23 (patch) | |
tree | 4d7bc17260536bd3d91902b521cbf30957cdc1c8 /Doc | |
parent | 2507e29a9e4e9dcac6eab46546bd3d34a69342ba (diff) | |
download | cpython-7464e87a6511d3626b04c9833a262a77b1f21e23.zip cpython-7464e87a6511d3626b04c9833a262a77b1f21e23.tar.gz cpython-7464e87a6511d3626b04c9833a262a77b1f21e23.tar.bz2 |
bpo-32410: Make SendfileNotAvailableError exception public (#5243)
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/asyncio-eventloop.rst | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/Doc/library/asyncio-eventloop.rst b/Doc/library/asyncio-eventloop.rst index e63180b..6cee171 100644 --- a/Doc/library/asyncio-eventloop.rst +++ b/Doc/library/asyncio-eventloop.rst @@ -726,7 +726,7 @@ Low-level socket operations the file when the platform does not support the sendfile syscall (e.g. Windows or SSL socket on Unix). - Raise :exc:`RuntimeError` if the system does not support + Raise :exc:`SendfileNotAvailableError` if the system does not support *sendfile* syscall and *fallback* is ``False``. .. versionadded:: 3.7 @@ -980,6 +980,18 @@ Handle .. versionadded:: 3.7 +SendfileNotAvailableError +------------------------- + + +.. exception:: SendfileNotAvailableError + + Sendfile syscall is not available, subclass of :exc:`RuntimeError`. + + Raised if the OS does not support senfile syscall for + given socket or file type. + + Event loop examples ------------------- |