liubao68 commented on issue #4469:
URL: 
https://github.com/apache/servicecomb-java-chassis/issues/4469#issuecomment-2287974189

   业务扩展实现的时候, reason phase 不要使用 exception message, 改下扩展代码即可。 如果使用exception 
message, 使用 
   
   `public InvocationException(int statusCode, String reasonPhrase, Object 
errorData, Throwable cause)` 等构造函数。 errorData 建议使用 `CommonExceptionData` , 例子: 
   
   ```
   CommonExceptionData data = new CommonExceptionData(errorMsg);
   InvocationException ie = new InvocationException(statusCode, reasonPhrase, 
data, e);
   ```
   


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