Added Parent URL to ContentNotFoundException

This commit is contained in:
James Deathe 2018-06-15 12:00:11 -04:00 committed by Eyad
parent 9c0828a6c6
commit 2a86bc6c01
2 changed files with 3 additions and 3 deletions

View file

@ -261,7 +261,7 @@ public class FessCrawlerThread extends CrawlerThread {
final FailureUrlService failureUrlService = ComponentUtil.getComponent(FailureUrlService.class);
failureUrlService.store(crawlingConfig, ContentNotFoundException.class.getCanonicalName(), url, new ContentNotFoundException(
url));
urlQueue.getParentUrl(), url));
}
}

View file

@ -19,8 +19,8 @@ public class ContentNotFoundException extends FessSystemException {
private static final long serialVersionUID = 1L;
public ContentNotFoundException(final String url) {
super("Not Found: " + url, false, false);
public ContentNotFoundException(final String parentUrl, final String url) {
super("Not Found: " + url + " Parent: " + parentUrl, false, false);
}
}