lamyoung commented on issue #6199:
URL: https://github.com/apache/dubbo/issues/6199#issuecomment-1024905358


   
![image](https://user-images.githubusercontent.com/20555382/151661346-3afcbf1e-ad68-46b4-bea1-016e33d4d4d8.png)
   @stone-98 @CrazyHZM 
   The problem of "new ValidationException(e.getMessage())" as shown in fig 
causes lost of stack trace of origin exception, what means here losing 
violations of ConstraintViolationException. consumer only get message like
   
![image](https://user-images.githubusercontent.com/20555382/151661491-1c6fdedd-ecce-4e56-9366-23b5cb131346.png)
   rather than 
   
![image](https://user-images.githubusercontent.com/20555382/151661444-1aa64024-34c3-4cda-959c-31af9cc46abe.png)
   It is difficult to get 'some error message' from this compared to violations 
of ConstraintViolationException.
   @harvies right?
   An application scenario is to display the error message on the web page. 
This is unfriendly
   
![image](https://user-images.githubusercontent.com/20555382/151661491-1c6fdedd-ecce-4e56-9366-23b5cb131346.png)


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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to