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

Unified Diff: lib/dom_parsing.dart

Issue 11265012: Changed UnsupportedOperationException to UnsupportedError (Closed) Base URL: https://github.com/dart-lang/html5lib.git@master
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
« no previous file with comments | « lib/dom.dart ('k') | lib/src/token.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/dom_parsing.dart
diff --git a/lib/dom_parsing.dart b/lib/dom_parsing.dart
index b2a2de1d4ba8b4d4b5ce9f5e43c934bd44411809..83491a928a5cc0a9257ad7ff3aaf9dabcb22edb0 100644
--- a/lib/dom_parsing.dart
+++ b/lib/dom_parsing.dart
@@ -133,7 +133,7 @@ class SourceFileInfo {
/** Gets the text at the given offsets. */
String getText(int start, [int end]) {
if (_decodedChars == null) {
- throw new UnsupportedOperationException('getText is only supported '
+ throw new UnsupportedError('getText is only supported '
'if parser.generateSpans is true.');
}
@@ -160,7 +160,7 @@ class SourceFileInfo {
if (!includeText) return msg;
if (_decodedChars == null) {
- throw new UnsupportedOperationException('includeText is only supported '
+ throw new UnsupportedError('includeText is only supported '
'if parser.generateSpans is true.');
}
@@ -212,8 +212,7 @@ class TreeVisitor {
case Node.DOCUMENT_FRAGMENT_NODE: return visitDocumentFragment(node);
case Node.DOCUMENT_NODE: return visitDocument(node);
case Node.DOCUMENT_TYPE_NODE: return visitDocumentType(node);
- default: throw new UnsupportedOperationException(
- 'DOM node type ${node.nodeType}');
+ default: throw new UnsupportedError('DOM node type ${node.nodeType}');
}
}
« no previous file with comments | « lib/dom.dart ('k') | lib/src/token.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698