/**
* Default socket timeout to use.
*/
- private static final int SOCKET_TIMEOUT = 20000;
+ private static final int SOCKET_TIMEOUT = 10000;
/**
* Regular expression for matching time interval strings in the retrieved
* In case of problems sending a mail notification.
*/
public KissCrawler(String aCrawlerConfig,
- String aProgramConfig) throws IOException, NotificationException {
+ String aProgramConfig) throws IOException, NotificationException, PageException {
this(START_URL, SOCKET_TIMEOUT, aCrawlerConfig, aProgramConfig);
}
* In case of problems sending a mail notification.
*/
public KissCrawler(String aStartUrl, int aSocketTimeout, String aCrawlerConfig,
- String aProgramConfig) throws IOException, NotificationException {
+ String aProgramConfig) throws IOException, NotificationException, PageException {
_pattern = Pattern.compile(TIME_REGEX);
} catch (PageException e) {
report.addMessage("Problem getting TV guide", e);
LOG.info("Problem getting TV guide", e);
+ throw e;
}
parser.getNotifier().send(report.asXml());
} finally {