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

Unified Diff: lib/utf/utf_core.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 | « lib/scalarlist/byte_arrays.dart ('k') | pkg/unittest/core_matchers.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/utf/utf_core.dart
diff --git a/lib/utf/utf_core.dart b/lib/utf/utf_core.dart
index 2cf5110847690c280982c804b90877eb2f7e4adb..fb9e0e42bb76822291eaacb85899e1ff300cf0d5 100644
--- a/lib/utf/utf_core.dart
+++ b/lib/utf/utf_core.dart
@@ -219,13 +219,13 @@ class _ListRange implements Iterable {
this._offset = offset,
this._length = (length == null ? source.length - offset : length) {
if (_offset < 0 || _offset > _source.length) {
- throw new IndexOutOfRangeException(_offset);
+ throw new RangeError.value(_offset);
}
if (_length != null && (_length < 0)) {
- throw new IndexOutOfRangeException(_length);
+ throw new RangeError.value(_length);
}
if (_length + _offset > _source.length) {
- throw new IndexOutOfRangeException(_length + _offset);
+ throw new RangeError.value(_length + _offset);
}
}
« no previous file with comments | « lib/scalarlist/byte_arrays.dart ('k') | pkg/unittest/core_matchers.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698