例外
****

**原始碼：**Lib/asyncio/exceptions.py

======================================================================

exception asyncio.TimeoutError

   該操作已超過規定的截止時間。

   重要:

     這個例外與內建 "TimeoutError" 例外不同。

exception asyncio.CancelledError

   該操作已被取消。

   當 asyncio Task 被取消時，可以捕獲此例外以執行客製化操作。在幾乎所
   有情況下，該例外必須重新被引發。

   3.8 版更變: "CancelledError" 現在是 "BaseException" 的子類別。

exception asyncio.InvalidStateError

   "Task" 或 "Future" 的無效內部狀態。

   可以在像是為已設定結果值的 *Future* 物件設定結果值的情況下引發。

exception asyncio.SendfileNotAvailableError

   "sendfile" 系統呼叫不適用於給定的 socket 或檔案型別。

   一個 "RuntimeError" 的子類別。

exception asyncio.IncompleteReadError

   請求的讀取操作未全部完成。

   由 asyncio 串流 APIs 引發。

   此例外是 "EOFError" 的子類別。

   expected

      預期的位元組總數 ("int")。

   partial

      串流結束之前讀取的 "bytes" 字串。

exception asyncio.LimitOverrunError

   在查詢分隔符號 (separator) 時達到緩衝區 (buffer) 大小限制。

   由 asyncio 串流 APIs 引發。

   consumed

      要消耗的位元組總數。
