Snow-kal opened a new pull request, #3183: URL: https://github.com/apache/dubbo-go/pull/3183
Add GenericException to retain Java exception type and message, and provide a unified conversion logic (supports DubboGenericException/Throwabler/legacy strings). See hessian_response.go Prioritize outputting GenericException in the response decoding path to avoid losing type information caused by returning only strings. See hessian_response.go and hessian_dubbo.go Support GenericException (pointer/value) in the response encoding path, and serialize it to the Java-side GenericException. See hessian_response.go and hessian.go Add unit tests to cover GenericException codec and compatibility with legacy string exceptions. See hessian_test.go ----------------------------------------------------------------------------------------------------------------------- 新增 GenericException,保留 Java 异常类型与消息,并提供统一转换逻辑(支持 DubboGenericException/Throwabler/历史字符串)。 见 hessian_response.go 响应解码路径优先输出 GenericException,避免仅返回字符串导致类型信息丢失。 见 hessian_response.go 与 hessian_dubbo.go 响应编码路径支持 GenericException(指针/值),并序列化为 Java 侧 GenericException。 见 hessian_response.go 与 hessian.go 新增单测覆盖 GenericException 编解码与历史字符串异常兼容。 见 hessian_test.go ### Description Related to https://github.com/apache/dubbo-go/issues/3167 ### Checklist - [ √] I confirm the target branch is `develop` - [ √] Code has passed local testing - [ √] I have added tests that prove my fix is effective or that my feature works -- 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]
