1 2 3 4 package net.nutch.parse; 5 6 import java.io.IOException ; 7 8 public class ParserNotFound extends ParseException { 9 private String url; 10 private String contentType; 11 12 public ParserNotFound(String url, String contentType) { 13 this(url, contentType, 14 "parser not found for contentType="+contentType+" url="+url); 15 } 16 17 public ParserNotFound(String url, String contentType, String message) { 18 super(message); 19 this.url = url; 20 this.contentType = contentType; 21 } 22 23 public String getUrl() { return url; } 24 public String getContentType() { return contentType; } 25 } 26 | Popular Tags |