AlbumenJ commented on a change in pull request #9620:
URL: https://github.com/apache/dubbo/pull/9620#discussion_r792294000
##########
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:
RpcException.VALIDATION_EXCEPTION is bought by
https://github.com/apache/dubbo/pull/9552/files#diff-d328eb1d6b3db5068164007286dffcd60b8419b3bfa0d7ebc566635f39f5b60fR42,
which has not been published
--
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]