update
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user