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

Unified Diff: pkg/logging/lib/logging.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/logging/lib/logging.dart
diff --git a/pkg/logging/lib/logging.dart b/pkg/logging/lib/logging.dart
index 3d90ad7e3fcb27036e216a1e75c503f898f6e672..6b7b13bb53f02cc018ad3603c623cbd7f72060e9 100644
--- a/pkg/logging/lib/logging.dart
+++ b/pkg/logging/lib/logging.dart
@@ -52,7 +52,7 @@ class Logger {
*/
factory Logger(String name) {
if (name.startsWith('.')) {
- throw new IllegalArgumentException("name shouldn't start with a '.'");
+ throw new ArgumentError("name shouldn't start with a '.'");
}
if (_loggers == null) _loggers = <String, Logger>{};
if (_loggers.containsKey(name)) return _loggers[name];

Powered by Google App Engine
This is Rietveld 408576698