This commit is contained in:
2026-07-31 10:25:17 +08:00
parent 0e3e01cfa0
commit 6e1799dfa0

View File

@@ -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)