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

Unified Diff: pkg/intl/lib/intl.dart

Issue 10989013: Change IllegalArgumentException to ArgumentError. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated co19 test expectations. Created 8 years, 3 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: pkg/intl/lib/intl.dart
diff --git a/pkg/intl/lib/intl.dart b/pkg/intl/lib/intl.dart
index 0864b8a7ae4fa2d91b159e4f514948cb03fd381a..0ca3576f77c8e8d4d0fe75aa3afe54f198726930 100644
--- a/pkg/intl/lib/intl.dart
+++ b/pkg/intl/lib/intl.dart
@@ -121,7 +121,7 @@ class Intl {
return each;
}
}
- throw new IllegalArgumentException("Invalid locale '$newLocale'");
+ throw new ArgumentError("Invalid locale '$newLocale'");
}
/** Return the short version of a locale name, e.g. 'en_US' => 'en' */

Powered by Google App Engine
This is Rietveld 408576698