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/06 08:14:44 UTC
[GitHub] [servicecomb-samples] liubao68 commented on issue #59: 在CSE中使用Handler进行拦截时,抛出的异常如何正常回显至调用方
liubao68 commented on issue #59:
URL: https://github.com/apache/servicecomb-samples/issues/59#issuecomment-722942379
不可以直接返回原始异常的。一方面是考虑exception的序列化问题,java-chassis是类型无关(跨语言)的RPC,不能包含类型信息;另一方面不反悔原始异常也是考虑信息泄露问题。 可以考虑[异常处理](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