CrazyHZM commented on a change in pull request #9620:
URL: https://github.com/apache/dubbo/pull/9620#discussion_r792282128



##########
File path: 
dubbo-filter/dubbo-filter-validation/src/main/java/org/apache/dubbo/validation/support/jvalidation/JValidatorNew.java
##########
@@ -293,7 +292,7 @@ public void validate(String methodName, Class<?>[] 
parameterTypes, Object[] argu
             }
         } catch (ValidationException e) {
             // only use exception's message to avoid potential serialization 
issue
-            throw new RpcException(RpcException.VALIDATION_EXCEPTION, 
e.getMessage(), e);
+            throw new ValidationException(e.getMessage());

Review comment:
       I'm a little concerned about affecting users who rely on 
`RpcException.VALIDATION_EXCEPTION`
   




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