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

Issue 304293010: Fixes to CaughtException and AnalysisException (Closed)

Created:
6 years, 6 months ago by Paul Berry
Modified:
6 years, 6 months ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Fixes to CaughtException and AnalysisException Two issues: 1. Some exceptions don't derive from Exception (for example NoSuchMethodError). So to avoid problems in checked builds, CaughtException.exception needs to have type Object. 2. When an exception is caught by the unittest framework, it prints it using its toString() method. So in order to see the stack trace of the CaughtException nested in an AnalysisException, we need AnalysisException's toString() to print both the exception and its cause (if any). R=brianwilkerson@google.com, jwren@google.com, scheglov@google.com Committed: https://code.google.com/p/dart/source/detail?r=37186

Patch Set 1 #

Patch Set 2 : Fix toString #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -2 lines) Patch
M editor/util/plugins/com.google.dart.java2dart/resources/java_engine.dart View 1 2 chunks +12 lines, -1 line 0 comments Download
M pkg/analyzer/lib/src/generated/java_engine.dart View 1 2 chunks +12 lines, -1 line 2 comments Download

Messages

Total messages: 6 (0 generated)
Paul Berry
An unfortunate side effect of #2 is that stack traces don't get printed in a ...
6 years, 6 months ago (2014-06-02 22:35:47 UTC) #1
Brian Wilkerson
LGTM
6 years, 6 months ago (2014-06-02 22:49:37 UTC) #2
scheglov
lgtm
6 years, 6 months ago (2014-06-02 23:05:47 UTC) #3
jwren
LGTM https://codereview.chromium.org/304293010/diff/10001/pkg/analyzer/lib/src/generated/java_engine.dart File pkg/analyzer/lib/src/generated/java_engine.dart (right): https://codereview.chromium.org/304293010/diff/10001/pkg/analyzer/lib/src/generated/java_engine.dart#newcode265 pkg/analyzer/lib/src/generated/java_engine.dart:265: cause._writeOn(buffer); Is a \n inserted with writeOn? Same ...
6 years, 6 months ago (2014-06-03 03:20:03 UTC) #4
Paul Berry
https://codereview.chromium.org/304293010/diff/10001/pkg/analyzer/lib/src/generated/java_engine.dart File pkg/analyzer/lib/src/generated/java_engine.dart (right): https://codereview.chromium.org/304293010/diff/10001/pkg/analyzer/lib/src/generated/java_engine.dart#newcode265 pkg/analyzer/lib/src/generated/java_engine.dart:265: cause._writeOn(buffer); On 2014/06/03 03:20:04, jwren wrote: > Is a ...
6 years, 6 months ago (2014-06-10 17:15:46 UTC) #5
Paul Berry
6 years, 6 months ago (2014-06-10 17:16:52 UTC) #6
Message was sent while issue was closed.
Committed patchset #2 manually as r37186 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698