Index: pkg/analyzer/lib/src/dart/constant/value.dart |
diff --git a/pkg/analyzer/lib/src/dart/constant/value.dart b/pkg/analyzer/lib/src/dart/constant/value.dart |
index a0d11629d04247eea94cf6941d2ed8186e3c13a4..177e27140df97d7830bcd5cd04fb6d5309cf4721 100644 |
--- a/pkg/analyzer/lib/src/dart/constant/value.dart |
+++ b/pkg/analyzer/lib/src/dart/constant/value.dart |
@@ -13,7 +13,6 @@ import 'package:analyzer/dart/constant/value.dart'; |
import 'package:analyzer/dart/element/element.dart'; |
import 'package:analyzer/dart/element/type.dart'; |
import 'package:analyzer/src/generated/error.dart'; |
-import 'package:analyzer/src/generated/java_core.dart'; |
import 'package:analyzer/src/generated/resolver.dart' show TypeProvider; |
import 'package:analyzer/src/generated/utilities_general.dart'; |
@@ -240,7 +239,7 @@ class DartObjectImpl implements DartObject { |
return new DartObjectImpl(typeProvider.stringType, result); |
} |
// We should never get here. |
- throw new IllegalStateException("add returned a ${result.runtimeType}"); |
+ throw new StateError("add returned a ${result.runtimeType}"); |
} |
/** |
@@ -339,7 +338,7 @@ class DartObjectImpl implements DartObject { |
return new DartObjectImpl(typeProvider.numType, result); |
} |
// We should never get here. |
- throw new IllegalStateException("divide returned a ${result.runtimeType}"); |
+ throw new StateError("divide returned a ${result.runtimeType}"); |
} |
/** |
@@ -508,7 +507,7 @@ class DartObjectImpl implements DartObject { |
return new DartObjectImpl(typeProvider.numType, result); |
} |
// We should never get here. |
- throw new IllegalStateException("minus returned a ${result.runtimeType}"); |
+ throw new StateError("minus returned a ${result.runtimeType}"); |
} |
/** |
@@ -528,7 +527,7 @@ class DartObjectImpl implements DartObject { |
return new DartObjectImpl(typeProvider.numType, result); |
} |
// We should never get here. |
- throw new IllegalStateException("negated returned a ${result.runtimeType}"); |
+ throw new StateError("negated returned a ${result.runtimeType}"); |
} |
/** |
@@ -589,8 +588,7 @@ class DartObjectImpl implements DartObject { |
return new DartObjectImpl(typeProvider.numType, result); |
} |
// We should never get here. |
- throw new IllegalStateException( |
- "remainder returned a ${result.runtimeType}"); |
+ throw new StateError("remainder returned a ${result.runtimeType}"); |
} |
/** |
@@ -647,7 +645,7 @@ class DartObjectImpl implements DartObject { |
return new DartObjectImpl(typeProvider.numType, result); |
} |
// We should never get here. |
- throw new IllegalStateException("times returned a ${result.runtimeType}"); |
+ throw new StateError("times returned a ${result.runtimeType}"); |
} |
@override |
@@ -1231,9 +1229,9 @@ class DynamicState extends InstanceState { |
} |
/** |
- * A run-time exception that would be thrown during the evaluation of Dart code. |
+ * Exception that would be thrown during the evaluation of Dart code. |
*/ |
-class EvaluationException extends JavaException { |
+class EvaluationException { |
Brian Wilkerson
2016/09/08 22:38:57
Should we do make this a subclass of AnalysisExcep
scheglov
2016/09/08 22:48:12
EvaluationException does not have a message or cau
|
/** |
* The error code associated with the exception. |
*/ |