summaryrefslogtreecommitdiff
path: root/devdocs/python~3.12/library%2Fasyncio-exceptions.html
diff options
context:
space:
mode:
Diffstat (limited to 'devdocs/python~3.12/library%2Fasyncio-exceptions.html')
-rw-r--r--devdocs/python~3.12/library%2Fasyncio-exceptions.html33
1 files changed, 33 insertions, 0 deletions
diff --git a/devdocs/python~3.12/library%2Fasyncio-exceptions.html b/devdocs/python~3.12/library%2Fasyncio-exceptions.html
new file mode 100644
index 00000000..1c4f05ce
--- /dev/null
+++ b/devdocs/python~3.12/library%2Fasyncio-exceptions.html
@@ -0,0 +1,33 @@
+ <span id="asyncio-exceptions"></span><h1>Exceptions</h1> <p><strong>Source code:</strong> <a class="reference external" href="https://github.com/python/cpython/tree/3.12/Lib/asyncio/exceptions.py">Lib/asyncio/exceptions.py</a></p> <dl class="py exception"> <dt class="sig sig-object py" id="asyncio.TimeoutError">
+<code>exception asyncio.TimeoutError</code> </dt> <dd>
+<p>A deprecated alias of <a class="reference internal" href="exceptions#TimeoutError" title="TimeoutError"><code>TimeoutError</code></a>, raised when the operation has exceeded the given deadline.</p> <div class="versionchanged"> <p><span class="versionmodified changed">Changed in version 3.11: </span>This class was made an alias of <a class="reference internal" href="exceptions#TimeoutError" title="TimeoutError"><code>TimeoutError</code></a>.</p> </div> </dd>
+</dl> <dl class="py exception"> <dt class="sig sig-object py" id="asyncio.CancelledError">
+<code>exception asyncio.CancelledError</code> </dt> <dd>
+<p>The operation has been cancelled.</p> <p>This exception can be caught to perform custom operations when asyncio Tasks are cancelled. In almost all situations the exception must be re-raised.</p> <div class="versionchanged"> <p><span class="versionmodified changed">Changed in version 3.8: </span><a class="reference internal" href="#asyncio.CancelledError" title="asyncio.CancelledError"><code>CancelledError</code></a> is now a subclass of <a class="reference internal" href="exceptions#BaseException" title="BaseException"><code>BaseException</code></a> rather than <a class="reference internal" href="exceptions#Exception" title="Exception"><code>Exception</code></a>.</p> </div> </dd>
+</dl> <dl class="py exception"> <dt class="sig sig-object py" id="asyncio.InvalidStateError">
+<code>exception asyncio.InvalidStateError</code> </dt> <dd>
+<p>Invalid internal state of <a class="reference internal" href="asyncio-task#asyncio.Task" title="asyncio.Task"><code>Task</code></a> or <a class="reference internal" href="asyncio-future#asyncio.Future" title="asyncio.Future"><code>Future</code></a>.</p> <p>Can be raised in situations like setting a result value for a <em>Future</em> object that already has a result value set.</p> </dd>
+</dl> <dl class="py exception"> <dt class="sig sig-object py" id="asyncio.SendfileNotAvailableError">
+<code>exception asyncio.SendfileNotAvailableError</code> </dt> <dd>
+<p>The “sendfile” syscall is not available for the given socket or file type.</p> <p>A subclass of <a class="reference internal" href="exceptions#RuntimeError" title="RuntimeError"><code>RuntimeError</code></a>.</p> </dd>
+</dl> <dl class="py exception"> <dt class="sig sig-object py" id="asyncio.IncompleteReadError">
+<code>exception asyncio.IncompleteReadError</code> </dt> <dd>
+<p>The requested read operation did not complete fully.</p> <p>Raised by the <a class="reference internal" href="asyncio-stream#asyncio-streams"><span class="std std-ref">asyncio stream APIs</span></a>.</p> <p>This exception is a subclass of <a class="reference internal" href="exceptions#EOFError" title="EOFError"><code>EOFError</code></a>.</p> <dl class="py attribute"> <dt class="sig sig-object py" id="asyncio.IncompleteReadError.expected">
+<code>expected</code> </dt> <dd>
+<p>The total number (<a class="reference internal" href="functions#int" title="int"><code>int</code></a>) of expected bytes.</p> </dd>
+</dl> <dl class="py attribute"> <dt class="sig sig-object py" id="asyncio.IncompleteReadError.partial">
+<code>partial</code> </dt> <dd>
+<p>A string of <a class="reference internal" href="stdtypes#bytes" title="bytes"><code>bytes</code></a> read before the end of stream was reached.</p> </dd>
+</dl> </dd>
+</dl> <dl class="py exception"> <dt class="sig sig-object py" id="asyncio.LimitOverrunError">
+<code>exception asyncio.LimitOverrunError</code> </dt> <dd>
+<p>Reached the buffer size limit while looking for a separator.</p> <p>Raised by the <a class="reference internal" href="asyncio-stream#asyncio-streams"><span class="std std-ref">asyncio stream APIs</span></a>.</p> <dl class="py attribute"> <dt class="sig sig-object py" id="asyncio.LimitOverrunError.consumed">
+<code>consumed</code> </dt> <dd>
+<p>The total number of to be consumed bytes.</p> </dd>
+</dl> </dd>
+</dl> <div class="_attribution">
+ <p class="_attribution-p">
+ &copy; 2001&ndash;2023 Python Software Foundation<br>Licensed under the PSF License.<br>
+ <a href="https://docs.python.org/3.12/library/asyncio-exceptions.html" class="_attribution-link">https://docs.python.org/3.12/library/asyncio-exceptions.html</a>
+ </p>
+</div>