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/09/21 12:42:10 UTC
[GitHub] [servicecomb-java-chassis] wang727955603 opened a new issue #1965: ExceptionToProducerResponseConverter为什么返回的是InvocationException的RuntimeException,有没有办法能继承Exception的自定义异常?
wang727955603 opened a new issue #1965:
URL: https://github.com/apache/servicecomb-java-chassis/issues/1965
----------------------------------------------------------------
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
[GitHub] [servicecomb-java-chassis] liubao68 commented on issue #1965: ExceptionToProducerResponseConverter为什么返回的是InvocationException的RuntimeException,有没有办法能继承Exception的自定义异常?
Posted by GitBox <gi...@apache.org>.
liubao68 commented on issue #1965:
URL: https://github.com/apache/servicecomb-java-chassis/issues/1965#issuecomment-697062766
不可以的。 java-chassis 的 RPC 层是语言无关的,没有类型信息。 出现错误的时候, 错误消息都通过 InvocationException 来表示。 参考错误处理: https://docs.servicecomb.io/java-chassis/zh_CN/general-development/error-handling/
----------------------------------------------------------------
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
[GitHub] [servicecomb-java-chassis] liubao68 commented on issue #1965: ExceptionToProducerResponseConverter为什么返回的是InvocationException的RuntimeException,有没有办法能继承Exception的自定义异常?
Posted by GitBox <gi...@apache.org>.
liubao68 commented on issue #1965:
URL: https://github.com/apache/servicecomb-java-chassis/issues/1965#issuecomment-697062766
不可以的。 java-chassis 的 RPC 层是语言无关的,没有类型信息。 出现错误的时候, 错误消息都通过 InvocationException 来表示。 参考错误处理: https://docs.servicecomb.io/java-chassis/zh_CN/general-development/error-handling/
----------------------------------------------------------------
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