diff options
| author | Murilo Ijanc <[email protected]> | 2026-07-26 16:41:48 -0300 |
|---|---|---|
| committer | Murilo Ijanc <[email protected]> | 2026-07-26 16:47:14 -0300 |
| commit | 535dbda6b48171f8115b455e54790de94d97d42a (patch) | |
| tree | 5c0410011e61a883bdf063ee612875a637fb1d22 /lib/cepis/ServerErrorException.php | |
| download | woocommerce-29190494c82855f0f0ce7fb16f831c8f971022c5.tar.gz | |
Initial importv0.1.0
Diffstat (limited to 'lib/cepis/ServerErrorException.php')
| -rw-r--r-- | lib/cepis/ServerErrorException.php | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/lib/cepis/ServerErrorException.php b/lib/cepis/ServerErrorException.php new file mode 100644 index 0000000..731b23b --- /dev/null +++ b/lib/cepis/ServerErrorException.php @@ -0,0 +1,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); + } +} |