Files
hyperf_data/config/autoload/exceptions.php
2025-09-24 16:48:02 +08:00

28 lines
646 B
PHP

<?php
declare(strict_types=1);
/**
* This file is part of Hyperf.
*
* @link https://www.hyperf.io
* @document https://hyperf.wiki
* @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/
use Aether\ApiExceptionHandler;
use Aether\RpcExceptionHandler;
return [
'handler' => [
'http' => [
Hyperf\HttpServer\Exception\Handler\HttpExceptionHandler::class,
ApiExceptionHandler::class,
],
'jsonrpc-http' => [
Hyperf\HttpServer\Exception\Handler\HttpExceptionHandler::class,
RpcExceptionHandler::class,
],
],
];