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

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: Created 8 years, 2 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: lib/utf/utf_core.dart
diff --git a/lib/utf/utf_core.dart b/lib/utf/utf_core.dart
index 39d868a68ec0505c57d5d3dfd555317f15d5af28..6000b90a3fa0082084a8c0bfadcd7e77d044468e 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(_offset);
}
if (_length != null && (_length < 0)) {
- throw new IndexOutOfRangeException(_length);
+ throw new RangeError(_length);
}
if (_length + _offset > _source.length) {
- throw new IndexOutOfRangeException(_length + _offset);
+ throw new RangeError(_length + _offset);
}
}

Powered by Google App Engine
This is Rietveld 408576698