Fixed unmanaged crawl exception.
This commit is contained in:
parent
35c3f91609
commit
9fdb7beb46
1 changed files with 7 additions and 0 deletions
|
@ -119,6 +119,13 @@ public class Crawler
|
|||
downloadFile = null;
|
||||
exception.printStackTrace();
|
||||
}
|
||||
catch (java.net.SocketException exception)
|
||||
{
|
||||
logger.error("ERROR: crawl failed for [{}]: {}", url.toString(), exception.getMessage());
|
||||
this.journal.add(url, parentURL, CrawlStatus.CONNECTERROR);
|
||||
downloadFile = null;
|
||||
exception.printStackTrace();
|
||||
}
|
||||
catch (FileNotFoundException exception)
|
||||
{
|
||||
logger.error("ERROR: crawl failed for [{}]: {}", url.toString(), exception.getMessage());
|
||||
|
|
Loading…
Reference in a new issue