|
|
Add error handling to socket streams
Change the streams onError callbacks to get an Exception argument on
all streams.
Added actual error handling to the socket streams.
As it is difficult to determine where an error should be reported I
decided to call all the registered onError callbacks, that is on the
socket itself and on both input and output stream.
Did some additional cleanup of the naming of OnError argument in some tests.
R=ager@google.com
BUG=
TEST=
Committed: https://code.google.com/p/dart/source/detail?r=5717
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+97 lines, -79 lines) |
Patch |
 |
M |
runtime/bin/chunked_stream.dart
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
runtime/bin/file_impl.dart
|
View
|
|
8 chunks |
+9 lines, -9 lines |
0 comments
|
Download
|
 |
M |
runtime/bin/input_stream.dart
|
View
|
|
3 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
runtime/bin/list_stream_impl.dart
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
runtime/bin/output_stream.dart
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
runtime/bin/socket_impl.dart
|
View
|
|
6 chunks |
+41 lines, -24 lines |
0 comments
|
Download
|
 |
M |
runtime/bin/socket_stream_impl.dart
|
View
|
1
|
4 chunks |
+18 lines, -17 lines |
0 comments
|
Download
|
 |
M |
runtime/bin/stream_util.dart
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
runtime/bin/string_stream.dart
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
tests/standalone/src/io/FileTest.dart
|
View
|
|
11 chunks |
+21 lines, -21 lines |
0 comments
|
Download
|
Total messages: 3 (0 generated)
|