propagate exception message

This commit is contained in:
Athou
2013-07-03 07:56:52 +02:00
parent 4565a7c43f
commit e759d095ed
4 changed files with 17 additions and 16 deletions

View File

@@ -57,7 +57,7 @@ public class FeedFetcher {
if (lastContentHash != null && hash != null
&& lastContentHash.equals(hash)) {
log.debug("content hash not modified: {}", feedUrl);
throw new NotModifiedException();
throw new NotModifiedException("content hash not modified");
}
fetchedFeed = parser.parse(feedUrl, content);
@@ -67,7 +67,7 @@ public class FeedFetcher {
&& lastPublishedDate.getTime() == fetchedFeed.getFeed()
.getLastPublishedDate().getTime()) {
log.debug("publishedDate not modified: {}", feedUrl);
throw new NotModifiedException();
throw new NotModifiedException("publishedDate not modified");
}
Feed feed = fetchedFeed.getFeed();