Merge pull request #1710 from EyadA/master

Added Parent URL to ContentNotFoundException
This commit is contained in:
Shinsuke Sugaya 2018-06-16 06:50:54 +09:00 committed by GitHub
commit b1d1c31d4b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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);
}
}