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 %'); |
} |
} |