Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
HttpClientStatusException | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
__construct | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 |
1 | <?php |
2 | |
3 | declare(strict_types=1); |
4 | |
5 | namespace PeServer\Core\Throws; |
6 | |
7 | use Throwable; |
8 | use PeServer\Core\Http\Client\HttpClientResponse; |
9 | use PeServer\Core\Throws\CoreException; |
10 | |
11 | final class HttpClientStatusException extends CoreException |
12 | { |
13 | public function __construct(public readonly HttpClientResponse $response, ?Throwable $previous = null) |
14 | { |
15 | parent::__construct($response->clientStatus->message, $response->clientStatus->number, $previous); |
16 | } |
17 | } |