trayliang commented on code in PR #298:
URL: 
https://github.com/apache/apisix-java-plugin-runner/pull/298#discussion_r2078958939


##########
runner-core/src/main/java/org/apache/apisix/plugin/runner/handler/RpcCallHandler.java:
##########
@@ -311,8 +309,7 @@ private void preReadReq() {
     }
 
     private void errorHandle(ChannelHandlerContext ctx, int code) {
-        A6ErrResponse errResponse = new A6ErrResponse(code);
-        ctx.writeAndFlush(errResponse);
+        throw new ApisixException(code, Code.name(code));

Review Comment:
   There is no exception returned here, but I want to return it to the custom 
catch through throws



-- 
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: notifications-unsubscr...@apisix.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to