Redis service
This commit is contained in:
15
app/common/Implement/Exception/EmptyRedis.php
Normal file
15
app/common/Implement/Exception/EmptyRedis.php
Normal file
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
namespace Incoviba\Common\Implement\Exception;
|
||||
|
||||
use Throwable;
|
||||
use Exception;
|
||||
|
||||
class EmptyRedis extends Exception
|
||||
{
|
||||
public function __construct(string $key, ?Throwable $previous = null)
|
||||
{
|
||||
$message = "Redis key {$key} not found in database.";
|
||||
$code = 750;
|
||||
parent::__construct($message, $code, $previous);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user