You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
420 B
18 lines
420 B
<?php
|
|
|
|
namespace App\Exception;
|
|
|
|
use App\Constants\ErrorCode;
|
|
use Hyperf\Server\Exception\ServerException;
|
|
|
|
class SsdbException extends ServerException
|
|
{
|
|
public function __construct(int $code = 0, string $message = null, Throwable $previous = null)
|
|
{
|
|
if (is_null($message)) {
|
|
$message = ErrorCode::getMessage($code);
|
|
}
|
|
|
|
parent::__construct($message, $code, $previous);
|
|
}
|
|
}
|