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/07/08 06:54:11 UTC

[GitHub] [servicecomb-java-chassis] liubao68 commented on issue #1731: 参数类型错误不能走自定义的ExceptionToProducerResponseConverter

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


   目前ServerFilter抛出的异常还没有统一拦截的机制,后续版本会归一化 ServerFilter和Handler, 这样异常处理就简单很多。 
   
   针对这个问题,当前可以自定义一个 HttpServerFilter, 实现
   `default void beforeSendResponse(Invocation invocation, HttpServletResponseEx responseEx)`
   方法, 将 response 里面的异常做一个处理也是可以的。 
   


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