Chromium Code Reviews
DescriptionFixes 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
Messages
Total messages: 6 (0 generated)
|
||||||||||||||||||||||||||||