Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(226)

Issue 555153002: Add error-intercept for Completer.completeError and StreamController.addError. (Closed)

Created:
6 years, 3 months ago by Lasse Reichstein Nielsen
Modified:
6 years, 3 months ago
Reviewers:
Søren Gjesse, floitsch
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Add error-intercept for Completer.completeError and StreamController.addError. BUG= http://dartbug.com/15105 R=sgjesse@google.com Committed: https://code.google.com/p/dart/source/detail?r=40308

Patch Set 1 #

Patch Set 2 : Also intercept errors in Future.error #

Patch Set 3 : Use AsyncError instead of _AsyncError. #

Patch Set 4 : Intercept all errors thrown by unregistered callbacks. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+544 lines, -75 lines) Patch
M sdk/lib/async/async_error.dart View 1 2 1 chunk +1 line, -8 lines 0 comments Download
M sdk/lib/async/broadcast_stream_controller.dart View 1 2 3 3 chunks +7 lines, -2 lines 0 comments Download
M sdk/lib/async/future.dart View 1 2 3 9 chunks +36 lines, -16 lines 0 comments Download
M sdk/lib/async/future_impl.dart View 1 2 12 chunks +24 lines, -16 lines 0 comments Download
M sdk/lib/async/stream.dart View 1 2 3 16 chunks +29 lines, -20 lines 0 comments Download
M sdk/lib/async/stream_controller.dart View 1 2 3 2 chunks +10 lines, -1 line 0 comments Download
M sdk/lib/async/stream_impl.dart View 1 2 2 chunks +4 lines, -3 lines 0 comments Download
M sdk/lib/async/stream_pipe.dart View 1 2 3 11 chunks +35 lines, -9 lines 0 comments Download
M sdk/lib/async/zone.dart View 1 2 3 19 chunks +71 lines, -0 lines 0 comments Download
A tests/lib/async/zone_error_callback_test.dart View 1 2 3 1 chunk +327 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (1 generated)
Lasse Reichstein Nielsen
6 years, 3 months ago (2014-09-10 08:58:15 UTC) #2
Søren Gjesse
LGTM
6 years, 3 months ago (2014-09-10 09:34:18 UTC) #3
Søren Gjesse
On 2014/09/10 09:34:18, Søren Gjesse wrote: > LGTM Btw.: How about some tests?
6 years, 3 months ago (2014-09-10 09:35:01 UTC) #4
nweiz
On 2014/09/10 08:58:15, Lasse Reichstein Nielsen wrote: DBC This still doesn't support intercepting of errors ...
6 years, 3 months ago (2014-09-10 19:54:46 UTC) #5
Lasse Reichstein Nielsen
On 2014/09/10 19:54:46, nweiz wrote: > This still doesn't support intercepting of errors in [new ...
6 years, 3 months ago (2014-09-10 20:16:36 UTC) #6
Lasse Reichstein Nielsen
I guess this should intercept all places where a synchronous error is turned into an ...
6 years, 3 months ago (2014-09-11 07:15:14 UTC) #7
Lasse Reichstein Nielsen
Updated and added tests. PTAL
6 years, 3 months ago (2014-09-11 12:44:37 UTC) #8
Søren Gjesse
lgtm
6 years, 3 months ago (2014-09-12 06:45:55 UTC) #9
Lasse Reichstein Nielsen
6 years, 3 months ago (2014-09-16 10:51:15 UTC) #10
Message was sent while issue was closed.
Committed patchset #4 (id:60001) manually as 40308 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698