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