Index: pkg/analysis_server/test/completion_test_support.dart |
diff --git a/pkg/analysis_server/test/completion_test_support.dart b/pkg/analysis_server/test/completion_test_support.dart |
index c2fb7a1e2836f5939efd12293f00fe6fedb8cd71..1ef8e4c9e9e227e6250a2ff57211550ae7ed9b44 100644 |
--- a/pkg/analysis_server/test/completion_test_support.dart |
+++ b/pkg/analysis_server/test/completion_test_support.dart |
@@ -151,18 +151,18 @@ class LocationSpec { |
modifiedSource.substring(index + n); |
} |
if (modifiedSource == originalSource) { |
- throw new IllegalStateException("No tests in source: " + originalSource); |
+ throw new StateError("No tests in source: " + originalSource); |
} |
for (String result in validationStrings) { |
if (result.length < 3) { |
- throw new IllegalStateException("Invalid location result: " + result); |
+ throw new StateError("Invalid location result: " + result); |
} |
String id = result.substring(0, 1); |
String sign = result.substring(1, 2); |
String value = result.substring(2); |
LocationSpec test = tests[id]; |
if (test == null) { |
- throw new IllegalStateException( |
+ throw new StateError( |
"Invalid location result id: $id for: $result"); |
} |
test.source = modifiedSource; |
@@ -172,7 +172,7 @@ class LocationSpec { |
test.negativeResults.add(value); |
} else { |
String err = "Invalid location result sign: $sign for: $result"; |
- throw new IllegalStateException(err); |
+ throw new StateError(err); |
} |
} |
List<String> badPoints = <String>[]; |
@@ -200,7 +200,7 @@ class LocationSpec { |
err..write(' ')..write(ch); |
} |
} |
- throw new IllegalStateException(err.toString()); |
+ throw new StateError(err.toString()); |
} |
return tests.values.toList(); |
} |