1 | <?php |
||
7 | class ClientException extends \RuntimeException |
||
8 | { |
||
9 | /** |
||
10 | * @var string |
||
11 | */ |
||
12 | private $method; |
||
13 | |||
14 | /** |
||
15 | * @var string |
||
16 | */ |
||
17 | private $path; |
||
18 | |||
19 | /** |
||
20 | * @var array |
||
21 | */ |
||
22 | private $params; |
||
23 | |||
24 | /** |
||
25 | * @return string |
||
26 | */ |
||
27 | public function getMethod() |
||
28 | { |
||
29 | return $this->method; |
||
30 | } |
||
31 | |||
32 | /** |
||
33 | * @return string |
||
34 | */ |
||
35 | public function getPath() |
||
36 | { |
||
37 | return $this->path; |
||
38 | } |
||
39 | |||
40 | /** |
||
41 | * @return array |
||
42 | */ |
||
43 | public function getParams() |
||
44 | { |
||
45 | return $this->params; |
||
46 | } |
||
47 | |||
48 | /** |
||
49 | * @param $method |
||
50 | * @param $path |
||
51 | * |
||
52 | * @return ClientException |
||
53 | */ |
||
54 | 1 | public static function newException(\Exception $e, $method, $path, array $params) |
|
63 | } |
||
64 |