Commit 961685d3 authored by liaozan's avatar liaozan 🏀

Fix dubbo exception handle

parent 1215e1bc
...@@ -30,14 +30,15 @@ public class DubboExceptionFilter extends ExceptionFilter { ...@@ -30,14 +30,15 @@ public class DubboExceptionFilter extends ExceptionFilter {
} }
Throwable rootCause = ExceptionUtil.getRootCause(appResponse.getException()); Throwable rootCause = ExceptionUtil.getRootCause(appResponse.getException());
if (rootCause instanceof ConstraintViolationException) { if (rootCause instanceof ConstraintViolationException) {
rootCause = createParamInvalidException(invocation, (ConstraintViolationException) rootCause); rootCause = createParamInvalidException(invocation, (ConstraintViolationException) rootCause);
} }
appResponse.setException(rootCause);
logErrorDetail(invocation, rootCause); logErrorDetail(invocation, rootCause);
if (rootCause instanceof BaseException) { if (rootCause instanceof BaseException) {
appResponse.setException(rootCause);
return; return;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment