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

Unified Diff: lib/collection/arrays.dart

Issue 11275042: Renaming IndexOutOfRangeException to RangeError. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Regenerated html files. Created 8 years, 1 month 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
« no previous file with comments | « no previous file | lib/compiler/implementation/lib/interceptors.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/collection/arrays.dart
diff --git a/lib/collection/arrays.dart b/lib/collection/arrays.dart
index a29fbb263e1e5872e6ff87d3887a64d6af42536c..783518257326d3d8c66ecd76cbb67af2e84cfdcf 100644
--- a/lib/collection/arrays.dart
+++ b/lib/collection/arrays.dart
@@ -82,11 +82,11 @@ class Arrays {
}
if (start < 0 ) {
String message = "$start must be greater than or equal to 0";
- throw new IndexOutOfRangeException(message);
+ throw new RangeError(message);
}
if (start + length > a.length) {
String message = "$start + $length must be in the range [0..${a.length})";
- throw new IndexOutOfRangeException(message);
+ throw new RangeError(message);
}
}
}
« no previous file with comments | « no previous file | lib/compiler/implementation/lib/interceptors.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698