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

Unified Diff: pkg/analyzer/lib/src/dart/element/element.dart

Issue 2326813002: Replace and remove JavaException(s). (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: pkg/analyzer/lib/src/dart/element/element.dart
diff --git a/pkg/analyzer/lib/src/dart/element/element.dart b/pkg/analyzer/lib/src/dart/element/element.dart
index 735219389d8249403764c1f1a87bb4058ffd5423..820a132f4dd188683e1ae12fb7864224d3b777c8 100644
--- a/pkg/analyzer/lib/src/dart/element/element.dart
+++ b/pkg/analyzer/lib/src/dart/element/element.dart
@@ -8414,7 +8414,7 @@ abstract class VariableElementImpl extends ElementImpl
* constant expression to the given [result].
*/
void set evaluationResult(EvaluationResultImpl result) {
- throw new IllegalStateException(
+ throw new StateError(
"Invalid attempt to set a compile-time constant result");
}

Powered by Google App Engine
This is Rietveld 408576698