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); |
} |
} |