Merge pull request #1710 from EyadA/master
Added Parent URL to ContentNotFoundException
This commit is contained in:
commit
b1d1c31d4b
2 changed files with 3 additions and 3 deletions
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue