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

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

Issue 11235054: Removed IllegalAccessException and UnsupportedOperationException. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: ADded test expectations. 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
« no previous file with comments | « samples/ui_lib/layout/GridLayoutParams.dart ('k') | samples/ui_lib/layout/SizingFunctions.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/ui_lib/layout/GridTracks.dart
diff --git a/samples/ui_lib/layout/GridTracks.dart b/samples/ui_lib/layout/GridTracks.dart
index 0ec317330325e5e76ca83d0fd6adc0c741ceb755..fb7976fee707d399e3a7dfa321e5b0001e8f469c 100644
--- a/samples/ui_lib/layout/GridTracks.dart
+++ b/samples/ui_lib/layout/GridTracks.dart
@@ -74,7 +74,7 @@ class GridItemAlignment {
case 'start': case 'end': case 'center': case 'stretch':
break;
default:
- throw new UnsupportedOperationException(
+ throw new UnsupportedError(
'invalid row/column alignment "$value"');
}
}
@@ -137,12 +137,12 @@ class GridTemplate {
*/
_GridTemplateRect lookupCell(String cell) {
if (cell.length != 1) {
- throw new UnsupportedOperationException(
+ throw new UnsupportedError(
'grid-cell "$cell" must be a one character string');
}
final rect = _rects[cell.charCodeAt(0)];
if (rect == null) {
- throw new UnsupportedOperationException(
+ throw new UnsupportedError(
'grid-cell "$cell" not found in parent\'s grid-template');
}
return rect;
@@ -168,7 +168,7 @@ class _GridTemplateRect {
// TODO(jmesserly): not sure if we should throw here, due to CSS's
// permissiveness. At the moment we're noisy about errors.
String cell = new String.fromCharCodes([_char]);
- throw new UnsupportedOperationException('grid-template "$cell"'
+ throw new UnsupportedError('grid-template "$cell"'
' is not square, expected $expected cells but got $_count');
}
}
« no previous file with comments | « samples/ui_lib/layout/GridLayoutParams.dart ('k') | samples/ui_lib/layout/SizingFunctions.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698