blob: 731b23b78c33950721c8d34eabdb4a28b715a79d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
<?php
declare(strict_types=1);
namespace Cepis;
/**
* The API answered 5xx on every attempt.
*/
final class ServerErrorException extends \RuntimeException implements CepisException
{
/**
* @param int $status HTTP status seen on the last attempt.
*/
public function __construct(
string $message,
public readonly int $status,
?\Throwable $previous = null,
) {
parent::__construct($message, 0, $previous);
}
}
|