Carl-Zhou-CN commented on code in PR #3598:
URL: 
https://github.com/apache/incubator-seatunnel/pull/3598#discussion_r1035547735


##########
seatunnel-connectors-v2/connector-jdbc/src/main/java/org/apache/seatunnel/connectors/seatunnel/jdbc/internal/JdbcInputFormat.java:
##########
@@ -95,9 +98,9 @@ public void openInputFormat() {
 
             statement = jdbcDialect.creatPreparedStatement(dbConn, 
queryTemplate, fetchSize);
         } catch (SQLException se) {
-            throw new IllegalArgumentException("open() failed." + 
se.getMessage(), se);
+            throw new 
JdbcConnectorException(CommonErrorCode.READER_OPERATION_FAILED, "open() 
failed." + se.getMessage(), se);

Review Comment:
   Whether the CONNECT_DATABASE_FAILED can be used



-- 
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