@@ -1118,7 +1118,9 @@ and :ref:`aiohttp-web-signals` handlers::
1118
1118
:class: `str ` (converted to *UTF-8 * encoded bytes)
1119
1119
or :class: `bytes `.
1120
1120
1121
- :raise RuntimeError: if connections is not started or closing.
1121
+ :raise RuntimeError: if the connections is not started.
1122
+
1123
+ :raise aiohttp.ClientConnectionResetError: if the connection is closing.
1122
1124
1123
1125
.. versionchanged :: 3.0
1124
1126
@@ -1133,7 +1135,9 @@ and :ref:`aiohttp-web-signals` handlers::
1133
1135
:class: `str ` (converted to *UTF-8 * encoded bytes)
1134
1136
or :class: `bytes `.
1135
1137
1136
- :raise RuntimeError: if connections is not started or closing.
1138
+ :raise RuntimeError: if the connections is not started.
1139
+
1140
+ :raise aiohttp.ClientConnectionResetError: if the connection is closing.
1137
1141
1138
1142
.. versionchanged :: 3.0
1139
1143
@@ -1150,10 +1154,12 @@ and :ref:`aiohttp-web-signals` handlers::
1150
1154
single message,
1151
1155
``None `` for not overriding per-socket setting.
1152
1156
1153
- :raise RuntimeError: if connection is not started or closing
1157
+ :raise RuntimeError: if the connection is not started.
1154
1158
1155
1159
:raise TypeError: if data is not :class: `str `
1156
1160
1161
+ :raise aiohttp.ClientConnectionResetError: if the connection is closing.
1162
+
1157
1163
.. versionchanged :: 3.0
1158
1164
1159
1165
The method is converted into :term: `coroutine `,
@@ -1170,11 +1176,13 @@ and :ref:`aiohttp-web-signals` handlers::
1170
1176
single message,
1171
1177
``None `` for not overriding per-socket setting.
1172
1178
1173
- :raise RuntimeError: if connection is not started or closing
1179
+ :raise RuntimeError: if the connection is not started.
1174
1180
1175
1181
:raise TypeError: if data is not :class: `bytes `,
1176
1182
:class: `bytearray ` or :class: `memoryview `.
1177
1183
1184
+ :raise aiohttp.ClientConnectionResetError: if the connection is closing.
1185
+
1178
1186
.. versionchanged :: 3.0
1179
1187
1180
1188
The method is converted into :term: `coroutine `,
@@ -1195,12 +1203,14 @@ and :ref:`aiohttp-web-signals` handlers::
1195
1203
returns a JSON string
1196
1204
(:func: `json.dumps ` by default).
1197
1205
1198
- :raise RuntimeError: if connection is not started or closing
1206
+ :raise RuntimeError: if the connection is not started.
1199
1207
1200
1208
:raise ValueError: if data is not serializable object
1201
1209
1202
1210
:raise TypeError: if value returned by ``dumps `` param is not :class: `str `
1203
1211
1212
+ :raise aiohttp.ClientConnectionResetError: if the connection is closing.
1213
+
1204
1214
.. versionchanged :: 3.0
1205
1215
1206
1216
The method is converted into :term: `coroutine `,
@@ -1230,6 +1240,10 @@ and :ref:`aiohttp-web-signals` handlers::
1230
1240
single message,
1231
1241
``None `` for not overriding per-socket setting.
1232
1242
1243
+ :raise RuntimeError: if the connection is not started.
1244
+
1245
+ :raise aiohttp.ClientConnectionResetError: if the connection is closing.
1246
+
1233
1247
.. versionadded :: 3.11
1234
1248
1235
1249
.. method :: close(*, code=WSCloseCode.OK, message=b'', drain=True)
0 commit comments