|
Error reporting on File in dart:io
This implements consistent error reporting on all methods on File in dart:io. The async onError method is called with an exception argument which is the same exception as would have been thrown from the corresponding sync method.
The one method on Directory which already did this has been updated as well.
R=ager@google.com
BUG=none
TEST=tests/standalone/src/io/FileTest.dart, tests/standalone/src/io/FileInvalidArgumentsTest.dart
Committed: https://code.google.com/p/dart/source/detail?r=5396
Total comments: 12
Total comments: 14
Total comments: 36
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+792 lines, -266 lines) |
Patch |
|
M |
runtime/bin/builtin_impl_sources.gypi
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
|
M |
runtime/bin/builtin_natives.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
A |
runtime/bin/common.dart
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+55 lines, -0 lines |
0 comments
|
Download
|
|
M |
runtime/bin/dartutils.h
|
View
|
1
2
3
4
5
|
3 chunks |
+11 lines, -0 lines |
0 comments
|
Download
|
|
M |
runtime/bin/dartutils.cc
|
View
|
1
2
3
4
5
|
2 chunks |
+50 lines, -0 lines |
0 comments
|
Download
|
|
M |
runtime/bin/directory.h
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -4 lines |
0 comments
|
Download
|
|
M |
runtime/bin/directory.cc
|
View
|
1
2
3
4
5
|
2 chunks |
+9 lines, -51 lines |
0 comments
|
Download
|
|
M |
runtime/bin/directory.dart
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+17 lines, -4 lines |
0 comments
|
Download
|
|
M |
runtime/bin/directory_impl.dart
|
View
|
1
2
3
4
5
6
|
6 chunks |
+13 lines, -22 lines |
0 comments
|
Download
|
|
M |
runtime/bin/directory_posix.cc
|
View
|
1
2
3
4
5
|
2 chunks |
+12 lines, -23 lines |
0 comments
|
Download
|
|
M |
runtime/bin/directory_win.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+21 lines, -37 lines |
0 comments
|
Download
|
|
M |
runtime/bin/file.cc
|
View
|
1
2
3
4
5
|
11 chunks |
+80 lines, -28 lines |
0 comments
|
Download
|
|
M |
runtime/bin/file.dart
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+17 lines, -3 lines |
0 comments
|
Download
|
|
M |
runtime/bin/file_impl.dart
|
View
|
1
2
3
4
5
6
7
|
21 chunks |
+125 lines, -70 lines |
0 comments
|
Download
|
|
M |
runtime/bin/file_linux.cc
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+18 lines, -0 lines |
0 comments
|
Download
|
|
M |
runtime/bin/file_macos.cc
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+18 lines, -0 lines |
0 comments
|
Download
|
|
M |
runtime/bin/file_win.cc
|
View
|
1
2
3
4
5
6
|
2 chunks |
+15 lines, -0 lines |
0 comments
|
Download
|
|
M |
runtime/bin/io_sources.gypi
|
View
|
1
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
A |
runtime/bin/utils.h
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+42 lines, -0 lines |
0 comments
|
Download
|
|
A |
runtime/bin/utils_linux.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+12 lines, -0 lines |
0 comments
|
Download
|
|
A |
runtime/bin/utils_macos.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+12 lines, -0 lines |
0 comments
|
Download
|
|
A |
runtime/bin/utils_win.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+31 lines, -0 lines |
0 comments
|
Download
|
|
|
tests/standalone/src/io/DirectoryTest.dart
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
A |
tests/standalone/src/io/FileErrorTest.dart
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+213 lines, -0 lines |
0 comments
|
Download
|
|
M |
tests/standalone/src/io/FileInvalidArgumentsTest.dart
|
View
|
1
2
3
4
5
|
5 chunks |
+13 lines, -22 lines |
0 comments
|
Download
|
Total messages: 8 (0 generated)
|