Skip to content

Commit

Permalink
added exception
Browse files Browse the repository at this point in the history
  • Loading branch information
cameroncaci committed Dec 9, 2023
1 parent 161ff32 commit 7d64db8
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ private boolean isTGETDataOutOfDate(XMLGregorianCalendar ourLastUpdate, XMLGrego
}

private void updateTGETData(XMLGregorianCalendar ourLastUpdate, String trdmTable, String rdsTable)
throws TableRequestException, DatatypeConfigurationException, IOException {
throws TableRequestException, DatatypeConfigurationException, IOException, SQLException {
if (!allowedTrdmTableNames.contains(trdmTable)) {
throw new IllegalArgumentException("Invalid table name");
}
Expand All @@ -131,7 +131,6 @@ private void updateTGETData(XMLGregorianCalendar ourLastUpdate, String trdmTable
databaseService.insertTransportationAccountingCodes(codes);
logger.info("finished inserting TACs into DB");
break;

case "lines_of_accounting":
// TODO:
default:
Expand Down

0 comments on commit 7d64db8

Please sign in to comment.