flyrain commented on code in PR #1430:
URL: https://github.com/apache/polaris/pull/1430#discussion_r2056422360


##########
extension/persistence/relational-jdbc/src/main/java/org/apache/polaris/extension/persistence/relational/jdbc/JdbcBasePersistenceImpl.java:
##########
@@ -122,7 +122,7 @@ public void writeEntity(
         }
       } catch (SQLException e) {
         throw new RuntimeException(
-            String.format("Failed to write entity due to %s", e.getMessage()));
+            String.format("Failed to write entity due to %s", e.getMessage()), 
e);

Review Comment:
   I'd recommend to introduce a new exception for JDBC implementation instead 
of using the general one `RuntimeException`. We may name it like 
`JdbcPersistenceException`, which extend `RuntimeException`. Not a blocker 
though.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to