Passed
Push — master ( b4e38b...044457 )
by wen
02:33
created

RedisException   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 4
dl 0
loc 12
c 0
b 0
f 0
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getName() 0 3 1
A __construct() 0 3 1
1
<?php
2
3
/**
4
 * @author: jiangyi
5
 * @date: 下午10:05 2018/12/13
6
 */
7
8
namespace EasyRedis\Exceptions;
9
10
use Throwable;
11
12
class RedisException extends \Exception
13
{
14
    public $errorInfo = [];
15
16
    public function __construct($message = "", $errorInfo = [], $code = 0, Throwable $previous = null)
17
    {
18
        parent::__construct($message, $code, $previous);
19
    }
20
21
    public function getName()
22
    {
23
        return 'Exception';
24
    }
25
}
26