Index: lib/core/errors.dart |
diff --git a/lib/core/errors.dart b/lib/core/errors.dart |
index eca6fea8f426adfa811e263be69e811da3b20fac..f41e366ca676582c44f0e3206014f7d8dd4af674 100644 |
--- a/lib/core/errors.dart |
+++ b/lib/core/errors.dart |
@@ -42,6 +42,14 @@ class CastError implements Error { |
} |
/** |
+ * Exception thrown because of an index outside of the valid range. |
+ */ |
+class RangeError extends ArgumentError { |
+ RangeError(int value) : super("Value of of range: $value"); |
floitsch
2012/10/25 14:31:38
Value out of range
Make it a 'num' ?
Lasse Reichstein Nielsen
2012/10/26 11:30:22
Done.
|
+} |
+ |
+ |
+/** |
* Temporary backwards compatibility class. |
* |
* Removed when users have had time to change to using [ArgumentError]. |