give
/
vendor
/
vendor-prefixed
/
stellarwp
/
licensing-api-client
/
src
/
Exceptions
/
Contracts
/
ResponseExceptionInterface.php
give
/
vendor
/
vendor-prefixed
/
stellarwp
/
licensing-api-client
/
src
/
Exceptions
/
Contracts
Last commit date
ApiErrorExceptionInterface.php
3 months ago
ResponseExceptionInterface.php
3 months ago
ResponseExceptionInterface.php
23 lines
| 1 | <?php declare(strict_types=1); |
| 2 | |
| 3 | namespace Give\Vendors\LiquidWeb\LicensingApiClient\Exceptions\Contracts; |
| 4 | |
| 5 | use Give\Vendors\Psr\Http\Message\ResponseInterface; |
| 6 | use Throwable; |
| 7 | |
| 8 | /** |
| 9 | * Marks exceptions that were created from an HTTP response. |
| 10 | */ |
| 11 | interface ResponseExceptionInterface extends Throwable |
| 12 | { |
| 13 | /** |
| 14 | * Returns the raw PSR-7 response for debugging and inspection. |
| 15 | */ |
| 16 | public function getResponse(): ResponseInterface; |
| 17 | |
| 18 | /** |
| 19 | * Returns the HTTP status code from the failed response. |
| 20 | */ |
| 21 | public function statusCode(): int; |
| 22 | } |
| 23 |