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

Unified Diff: corelib/src/exceptions.dart

Issue 10786045: Improve the error messages for IndexOutOfRangeException. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 5 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
« no previous file with comments | « no previous file | runtime/lib/arrays.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: corelib/src/exceptions.dart
diff --git a/corelib/src/exceptions.dart b/corelib/src/exceptions.dart
index b309b8d6646d4920afe74329330463932a360d3c..60a29af25ff4843207633245660d4e16c4ceedcd 100644
--- a/corelib/src/exceptions.dart
+++ b/corelib/src/exceptions.dart
@@ -16,9 +16,11 @@ interface Exception default ExceptionImplementation {
* Exception thrown because of an index outside of the valid range.
*/
class IndexOutOfRangeException implements Exception {
- const IndexOutOfRangeException(int this._index);
- String toString() => "IndexOutOfRangeException: $_index";
- final int _index;
+ const IndexOutOfRangeException(this._value);
+
+ String toString() => "IndexOutOfRangeException: $_value";
+
+ final _value;
}
« no previous file with comments | « no previous file | runtime/lib/arrays.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698