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

Unified Diff: pkg/analyzer/lib/src/generated/source.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/generated/source.dart
diff --git a/pkg/analyzer/lib/src/generated/source.dart b/pkg/analyzer/lib/src/generated/source.dart
index 264a5db4b90dd1b76990774977612a1f85e62b60..41f6c8846edcb885d3cb4f8ee861b5ce60e31102 100644
--- a/pkg/analyzer/lib/src/generated/source.dart
+++ b/pkg/analyzer/lib/src/generated/source.dart
@@ -212,9 +212,9 @@ class LineInfo {
*/
LineInfo._(this.lineStarts) {
if (lineStarts == null) {
- throw new IllegalArgumentException("lineStarts must be non-null");
+ throw new ArgumentError("lineStarts must be non-null");
} else if (lineStarts.length < 1) {
- throw new IllegalArgumentException("lineStarts must be non-empty");
+ throw new ArgumentError("lineStarts must be non-empty");
}
}
@@ -379,7 +379,7 @@ class NonExistingSource extends Source {
@override
TimestampedData<String> get contents {
- throw new UnsupportedOperationException('$fullName does not exist.');
+ throw new UnsupportedError('$fullName does not exist.');
}
@override

Powered by Google App Engine
This is Rietveld 408576698