1 Star 2 Fork 3

APIJSON/hyperf-APIJSON

Create your Gitee Account
Explore and code with more than 14 million developers,Free private repositories !:)
Sign up
文件
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
BusinessException.php 677 Bytes
Copy Edit Raw Blame History
abigeater authored 2021-11-02 17:33 +08:00 . first commit
<?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
*/
namespace App\Exception;
use App\Constants\ResponseCode;
use Hyperf\Server\Exception\ServerException;
use Throwable;
class BusinessException extends ServerException
{
public function __construct(int $code = 0, string $message = null, Throwable $previous = null)
{
if (is_null($message)) {
$message = ResponseCode::getMessage($code);
}
parent::__construct($message, $code, $previous);
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/APIJSON/hyperf-APIJSON.git
git@gitee.com:APIJSON/hyperf-APIJSON.git
APIJSON
hyperf-APIJSON
hyperf-APIJSON
master

Search