Skip to content

Commit 5f5d953

Browse files
committed
Merge pull request #251 from saghul/websocket_error
Fix documentation after exception rename
2 parents f492f86 + c5715b2 commit 5f5d953

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/web_reference.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -656,7 +656,7 @@ WebSocketResponse
656656

657657
A :ref:`coroutine<coroutine>` that waits for socket handshake
658658
finish and raises
659-
:exc:`~aiohttp.errors.WebSocketDisconnectedError` at the end.
659+
:exc:`~aiohttp.errors.WSClientDisconnectedError` at the end.
660660

661661
Use the method only from write-only tasks, please call one of
662662
:meth:`receive_str`, :meth:`receive_bytes` or
@@ -678,14 +678,14 @@ WebSocketResponse
678678
It process *ping-pong game* and performs *closing handshake* internally.
679679

680680
After websocket closing raises
681-
:exc:`~aiohttp.errors.WebSocketDisconnectedError` with
681+
:exc:`~aiohttp.errors.WSClientDisconnectedError` with
682682
connection closing data.
683683

684684
:return: :class:`~aiohttp.websocket.Message`
685685

686686
:raise RuntimeError: if connection is not started
687687

688-
:raise: :exc:`~aiohttp.errors.WebSocketDisconnectedError` on closing.
688+
:raise: :exc:`~aiohttp.errors.WSClientDisconnectedError` on closing.
689689

690690
.. method:: receive_str()
691691

0 commit comments

Comments
 (0)