You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by GitBox <gi...@apache.org> on 2020/11/12 07:36:54 UTC

[GitHub] [servicecomb-java-chassis] zhoutianli518 commented on issue #2051: 提一个优化需求:是否可以提供客户端异常处理的SPI机制?

zhoutianli518 commented on issue #2051:
URL: https://github.com/apache/servicecomb-java-chassis/issues/2051#issuecomment-725897932


   不是将服务端的异常序列化带回给client,我的意思是能否在客户端侧增加SPI,可以由客户端控制抛出的异常,这样,客户端可以定制抛出的异常。而不是只能由sdk固定抛出InvocationException。
   sdk里的invoker使用的动态代理InvocationHandler,其invoke方法是可以抛出任何异常,是否可以放开一个口子,让业务定制抛出的异常实例呢?
   
   
   


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

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