Fixed unmanaged crawl exception.

This commit is contained in:
Christian P. MOMON 2022-01-18 13:08:15 +01:00
parent 35c3f91609
commit 9fdb7beb46

View file

@ -119,6 +119,13 @@ public class Crawler
downloadFile = null; downloadFile = null;
exception.printStackTrace(); 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) catch (FileNotFoundException exception)
{ {
logger.error("ERROR: crawl failed for [{}]: {}", url.toString(), exception.getMessage()); logger.error("ERROR: crawl failed for [{}]: {}", url.toString(), exception.getMessage());