Removed IllegalAccessException and UnsupportedOperationException.

Both were converted to StateError.

Review URL: https://codereview.chromium.org//11235054

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/logging@14012 260f80e4-7a28-3924-810f-c04153c831b5
diff --git a/lib/logging.dart b/lib/logging.dart
index 8dc5ac1..b423e20 100644
--- a/lib/logging.dart
+++ b/lib/logging.dart
@@ -96,7 +96,7 @@
       _level = value;
     } else {
       if (parent != null) {
-        throw new UnsupportedOperationException(
+        throw new UnsupportedError(
             'Please set "hierarchicalLoggingEnabled" to true if you want to '
             'change the level on a non-root logger.');
       }