1 | <?php |
||
8 | abstract class Exception extends \RuntimeException |
||
9 | { |
||
10 | /** @var RequestInterface */ |
||
11 | protected $request; |
||
12 | |||
13 | 6 | public function __construct(string $message, RequestInterface $request, Throwable $previous = null) |
|
19 | |||
20 | /** |
||
21 | * Returns the request. |
||
22 | * |
||
23 | * The request object MAY be a different object from the one passed to ClientInterface::sendRequest() |
||
24 | * |
||
25 | * @return RequestInterface |
||
26 | */ |
||
27 | public function getRequest(): RequestInterface |
||
31 | } |
||
32 |