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