1 | <?php |
||
6 | class ErrorResponseException extends \RuntimeException |
||
7 | { |
||
8 | /** |
||
9 | * @var string |
||
10 | */ |
||
11 | protected $detail; |
||
12 | |||
13 | /** |
||
14 | * @var \Psr\Http\Message\RequestInterface |
||
15 | */ |
||
16 | protected $request; |
||
17 | |||
18 | /** |
||
19 | * @var \Psr\Http\Message\ResponseInterface |
||
20 | */ |
||
21 | protected $response; |
||
22 | |||
23 | /** |
||
24 | * @var array |
||
25 | */ |
||
26 | protected $error = []; |
||
27 | |||
28 | public function __construct( |
||
46 | |||
47 | /** |
||
48 | * @return \Psr\Http\Message\RequestInterface |
||
49 | */ |
||
50 | public function getRequest(): \Psr\Http\Message\RequestInterface |
||
54 | |||
55 | /** |
||
56 | * @return \Psr\Http\Message\ResponseInterface |
||
57 | */ |
||
58 | public function getResponse(): \Psr\Http\Message\ResponseInterface |
||
62 | |||
63 | /** |
||
64 | * @return string |
||
65 | */ |
||
66 | public function getDetail(): string |
||
70 | |||
71 | /** |
||
72 | * @return string |
||
73 | */ |
||
74 | public function __toString(): string |
||
85 | } |
||
86 |