EarthChen commented on code in PR #11859:
URL: https://github.com/apache/dubbo/pull/11859#discussion_r1149981680
##########
dubbo-rpc/dubbo-rpc-triple/src/main/java/org/apache/dubbo/rpc/protocol/tri/call/AbstractServerCall.java:
##########
@@ -142,7 +163,11 @@ private void doSendMessage(Object message) {
}
final byte[] data;
try {
- data = packableMethod.packResponse(message);
+ if (message instanceof Exception && !isNeedReturnException) {
+ data = packableMethod.packResponse(new
RpcException((Exception) message));
Review Comment:
Should exceptions be serialized directly?
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]