Total Complexity | 2 |
Total Lines | 33 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | class JiraException extends \Exception |
||
15 | { |
||
16 | /** |
||
17 | * Response returned by Jira. |
||
18 | * |
||
19 | * @var string|null |
||
20 | */ |
||
21 | protected $response; |
||
22 | |||
23 | /** |
||
24 | * Create a new Jira exception instance. |
||
25 | * |
||
26 | * @param string $message |
||
27 | * @param int $code |
||
28 | * @param \Throwable $previous |
||
29 | * @param string $response |
||
30 | * @return void |
||
31 | */ |
||
32 | public function __construct($message = null, $code = 0, \Throwable $previous = null, $response = null) |
||
33 | { |
||
34 | parent::__construct($message, $code, $previous); |
||
35 | |||
36 | $this->response = $response; |
||
37 | } |
||
38 | |||
39 | /** |
||
40 | * Get error response. |
||
41 | * |
||
42 | * @return string|null |
||
43 | */ |
||
44 | public function getResponse() |
||
47 | } |
||
48 | } |
||
49 |