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/02/25 02:33:12 UTC

[GitHub] [servicecomb-java-chassis] Caixinyang removed a comment on issue #1587: @RestControllerAdvice配置失效问题

Caixinyang removed a comment on issue #1587: @RestControllerAdvice配置失效问题
URL: https://github.com/apache/servicecomb-java-chassis/issues/1587#issuecomment-590650984
 
 
   您好,我参考你提供的文档配置了ExceptionToProducerResponseConverter<ConstraintViolationException>捕捉到了@RequestParam异常。但是@RequestHeader异常不住不到,我尝试增加了ExceptionToProducerResponseConverter<InvocationException>,
   ExceptionToProducerResponseConverter<Exception>
   ExceptionToProducerResponseConverter<ServletRequestBindingException>
   ExceptionToProducerResponseConverter<UnsatisfiedServletRequestParameterException>等
   但是结果抓不到@RequestHeader的异常:
   org.apache.servicecomb.swagger.invocation.exception.InvocationException: InvocationException: code=400;msg=CommonExceptionData [message=Parameter is not valid for operation [application-manage.IefAppTemplateController.getAppTemplateList]. Parameter is [X-Auth-Token]. Processor is [header].]
   

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


With regards,
Apache Git Services