You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2022/01/26 03:40:54 UTC

[GitHub] [dubbo] AlbumenJ commented on a change in pull request #9620: [3.0] Fix validation exception

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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org