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

Unified Diff: samples/ui_lib/layout/SizingFunctions.dart

Issue 11235054: Removed IllegalAccessException and UnsupportedOperationException. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 2 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: samples/ui_lib/layout/SizingFunctions.dart
diff --git a/samples/ui_lib/layout/SizingFunctions.dart b/samples/ui_lib/layout/SizingFunctions.dart
index 2fd7c25fd47bbf61ff599ca94a5628f55c290424..2ef133677e0fbac75405abb2a89cac4601642d86 100644
--- a/samples/ui_lib/layout/SizingFunctions.dart
+++ b/samples/ui_lib/layout/SizingFunctions.dart
@@ -44,7 +44,7 @@ class FixedSizing extends SizingFunction {
_contentSized = false {
if (units != 'px' && units != '%') {
// TODO(jmesserly): support other unit types
- throw new UnsupportedOperationException('Units other than px and %');
+ throw new StateError('Units other than px and %');
}
}

Powered by Google App Engine
This is Rietveld 408576698