Files
newznab-tmux/app/Services/IGDB/Exceptions/IgdbHttpException.php
T
2026-03-26 10:48:12 +01:00

29 lines
555 B
PHP

<?php
declare(strict_types=1);
namespace App\Services\IGDB\Exceptions;
use RuntimeException;
class IgdbHttpException extends RuntimeException
{
public function __construct(
string $message,
private readonly int $statusCode,
private readonly ?string $responseBody = null,
) {
parent::__construct($message, $statusCode);
}
public function getStatusCode(): int
{
return $this->statusCode;
}
public function getResponseBody(): ?string
{
return $this->responseBody;
}
}