Index: src/java/org/apache/nutch/parse/ParseUtil.java
===================================================================
--- src/java/org/apache/nutch/parse/ParseUtil.java (revision 1196662)
+++ src/java/org/apache/nutch/parse/ParseUtil.java (working copy)
@@ -101,20 +101,16 @@
* returned. If the parse is unsuccessful, a message is logged to the
* WARNING
level, and an empty parse is returned.
*
- * @throws ParseException If no suitable parser is found to perform the parse.
+ * @throws ParserNotFound If there is no suitable parser found.
+ * @throws ParseException If there is an error parsing.
*/
- public Parse parse(String url, WebPage page) throws ParseException {
+ public Parse parse(String url, WebPage page) throws ParserNotFound,
+ ParseException {
Parser[] parsers = null;
String contentType = TableUtil.toString(page.getContentType());
- try {
- parsers = this.parserFactory.getParsers(contentType, url);
- } catch (ParserNotFound e) {
- LOG.warn("No suitable parser found when trying to parse content " + url +
- " of type " + contentType);
- throw new ParseException(e.getMessage());
- }
+ parsers = this.parserFactory.getParsers(contentType, url);
for (int i=0; i