1: | <?php declare(strict_types=1); |
2: | |
3: | namespace Salient\Contract\Curler\Exception; |
4: | |
5: | use Psr\Http\Message\RequestInterface; |
6: | use Salient\Contract\Http\HttpResponseInterface; |
7: | |
8: | /** |
9: | * @api |
10: | */ |
11: | interface ResponseExceptionInterface extends CurlerExceptionInterface |
12: | { |
13: | /** |
14: | * Get the request associated with the exception |
15: | */ |
16: | public function getRequest(): RequestInterface; |
17: | |
18: | /** |
19: | * Get the response associated with the exception |
20: | */ |
21: | public function getResponse(): HttpResponseInterface; |
22: | } |
23: |