GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Passed
Pull Request — master (#231)
by Yong
09:44 queued 05:23
created

ClientException::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 3
c 1
b 0
f 0
nc 1
nop 3
dl 0
loc 5
ccs 4
cts 4
cp 1
crap 1
rs 10
1
<?php
2
3
namespace AlibabaCloud\Client\Exception;
4
5
use Exception;
6
use RuntimeException;
7
8
/**
9
 * Class ClientException
10
 *
11
 * @package   AlibabaCloud\Client\Exception
12
 */
13
class ClientException extends AlibabaCloudException
14
{
15
16
    /**
17
     * ClientException constructor.
18
     *
19
     * @param string         $errorMessage
20
     * @param string         $errorCode
21
     * @param Exception|null $previous
22
     */
23 197
    public function __construct($errorMessage, $errorCode, $previous = null)
24
    {
25 197
        parent::__construct($errorMessage, 0, $previous);
26 197
        $this->errorMessage = $errorMessage;
27 197
        $this->errorCode    = $errorCode;
28 197
    }
29
30
    /**
31
     * @codeCoverageIgnore
32
     * @deprecated
33
     */
34
    public function getErrorType()
35
    {
36
        return 'Client';
37
    }
38
}
39