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