leno23 opened a new pull request, #396: URL: https://github.com/apache/dubbo-go-hessian2/pull/396
### Description Related to apache/dubbo-go#3361 and apache/dubbo-go#3378. This PR completes the hessian2-side part of moving Dubbo generic exception handling into dubbo-go-hessian2. `DubboGenericException` already carries `ExceptionClass` and `ExceptionMessage`; this change makes the constructor and `Error()` expose a stable detail message from those fields so callers do not need to duplicate message formatting in dubbo-go. The behavior remains compatible with decoded Java exceptions: when `DetailMessage` is already populated by decoding, `Error()` keeps returning that decoded detail. When it is empty, `Error()` falls back to the generic exception class/message formatting that dubbo-go previously implemented locally. ### Validation - `go test ./java_exception` - `go test . -run TestException` - `go test ./...` - `git diff --check` - local audit script (`OVERALL_EXIT=0`) -- 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]
