diff --git a/src/Exception/Handler/GatewayExceptionHandler.php b/src/Exception/Handler/GatewayExceptionHandler.php index 0882377..f9706f1 100644 --- a/src/Exception/Handler/GatewayExceptionHandler.php +++ b/src/Exception/Handler/GatewayExceptionHandler.php @@ -17,6 +17,7 @@ use Hyperf\HttpServer\Contract\RequestInterface; use Hyperf\RpcClient\Exception\RequestException; use Dhd\Micro\Core\Exception\BusinessException; +use Dhd\Micro\Core\Exception\ValidateException; use Dhd\Micro\Core\Trait\RpcContextTrait; @@ -47,6 +48,7 @@ class GatewayExceptionHandler extends ExceptionHandler Util::logger() ->setErrorStatus( !($throwable instanceof BusinessException) + && !($throwable instanceof ValidateException) && !($throwable instanceof RequestException) ) ->setMessage($message)