KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > nutch > parse > ParserNotFound


1 /* Copyright (c) 2004 The Nutch Organization. All rights reserved. */
2 /* Use subject to the conditions in http://www.nutch.org/LICENSE.txt. */
3
4 package net.nutch.parse;
5
6 import java.io.IOException JavaDoc;
7
8 public class ParserNotFound extends ParseException {
9   private String JavaDoc url;
10   private String JavaDoc contentType;
11
12   public ParserNotFound(String JavaDoc url, String JavaDoc contentType) {
13     this(url, contentType,
14          "parser not found for contentType="+contentType+" url="+url);
15   }
16
17   public ParserNotFound(String JavaDoc url, String JavaDoc contentType, String JavaDoc message) {
18     super(message);
19     this.url = url;
20     this.contentType = contentType;
21   }
22
23   public String JavaDoc getUrl() { return url; }
24   public String JavaDoc getContentType() { return contentType; }
25 }
26
Popular Tags