commit | dbc252bd6517b38cbdad45c796e4f2ee8771451f | [log] [tgz] |
---|---|---|
author | lrn@google.com <lrn@google.com> | Tue Sep 25 12:27:52 2012 +0000 |
committer | lrn@google.com <lrn@google.com> | Tue Sep 25 12:27:52 2012 +0000 |
tree | 7f031f5aa363dce8f92e740400c132234ad675a4 | |
parent | 7030e7ece40e0108924e4b5844be074d71f3a0c7 [diff] |
Change IllegalArgumentException to ArgumentError. Review URL: https://codereview.chromium.org//10989013 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/logging@12841 260f80e4-7a28-3924-810f-c04153c831b5
diff --git a/lib/logging.dart b/lib/logging.dart index 3d90ad7..6b7b13b 100644 --- a/lib/logging.dart +++ b/lib/logging.dart
@@ -52,7 +52,7 @@ */ 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];