Skip to content

Commit

Permalink
call JSON parsing a SQLException so it gets serialized as DatabaseExc…
Browse files Browse the repository at this point in the history
…eption
  • Loading branch information
skovati committed Sep 9, 2024
1 parent c2daa92 commit 4559d16
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import java.text.ParseException;
import java.util.ArrayList;
import java.util.List;
import java.util.Optional;
Expand Down Expand Up @@ -70,7 +71,7 @@ public List<GoalInvocationRecord> get(final long specificationId) throws SQLExce
}
return goals;
} catch (InvalidJsonException | InvalidEntityException e) {
throw new RuntimeException(e);
throw new SQLException(e);
}
}

Expand Down

0 comments on commit 4559d16

Please sign in to comment.