MonsterChenzhuo commented on code in PR #3594:
URL: 
https://github.com/apache/incubator-seatunnel/pull/3594#discussion_r1034344213


##########
seatunnel-connectors-v2/connector-http/connector-http-base/src/main/java/org/apache/seatunnel/connectors/seatunnel/http/source/HttpSource.java:
##########
@@ -83,7 +88,7 @@ protected void buildSchemaWithConfig(Config pluginConfig) {
                     break;
                 default:
                     // TODO: use format SPI
-                    throw new UnsupportedOperationException("Unsupported 
format: " + format);
+                    throw new 
HttpConnectorException(HttpConnectorErrorCode.FORMAT_FAILED, new 
UnsupportedOperationException());

Review Comment:
   I think it's reasonable.
   @FWLamb @TyrantLucifer I have made the fix, please continue with the code 
review



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