We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 03e1659 commit 3ee9c0bCopy full SHA for 3ee9c0b
sdk/lib/_internal/vm/bin/socket_patch.dart
@@ -2226,6 +2226,10 @@ class _Socket extends Stream<Uint8List> implements Socket {
2226
2227
void add(List<int> bytes) => _sink.add(bytes);
2228
2229
+ /// Unsupported operation on sockets.
2230
+ ///
2231
+ /// Throws an [UnsupportedError] because errors cannot be transmitted over a
2232
+ /// [Socket].
2233
void addError(Object error, [StackTrace? stackTrace]) {
2234
throw new UnsupportedError("Cannot send errors on sockets");
2235
}
0 commit comments