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

Unified Diff: samples/ui_lib/layout/ViewLayout.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/ViewLayout.dart
diff --git a/samples/ui_lib/layout/ViewLayout.dart b/samples/ui_lib/layout/ViewLayout.dart
index 98be5f1b47679e4ebc73a153ca603eb27804ae88..4843a5263956547a1af0daa0e82e3926d88f475e 100644
--- a/samples/ui_lib/layout/ViewLayout.dart
+++ b/samples/ui_lib/layout/ViewLayout.dart
@@ -213,7 +213,7 @@ class ViewLayout {
return int.parse(style.substring(0, style.length - 2));
} else {
// TODO(jmesserly): other size units
- throw new UnsupportedOperationException(
+ throw new StateError(
'Unknown min/max content size format: "$style"');
}
}

Powered by Google App Engine
This is Rietveld 408576698