Skip to content

Commit 9f9e2ab

Browse files
committed
feat: add DateTimeParseException in signature
1 parent 9e9f6cb commit 9f9e2ab

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

application/src/main/java/org/togetherjava/tjbot/features/javamail/RSSHandlerRoutine.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,8 +278,10 @@ private void updateLastDateToDatabase(RSSFeed feedConfig, @Nullable RssFeedRecor
278278
* @param item The {@link Item} from which to extract the date.
279279
* @param dateTimeFormat The format of the date time string.
280280
* @return The computed {@link ZonedDateTime}
281+
* @throws DateTimeParseException if the date cannot be parsed
281282
*/
282-
private static ZonedDateTime getDateTimeFromItem(Item item, String dateTimeFormat) {
283+
private static ZonedDateTime getDateTimeFromItem(Item item, String dateTimeFormat)
284+
throws DateTimeParseException {
283285
String pubDate = item.getPubDate().orElse(null);
284286

285287
if (pubDate == null || dateTimeFormat == null) {

0 commit comments

Comments
 (0)