mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-28 23:01:29 +00:00
29 lines
555 B
PHP
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;
|
|
}
|
|
}
|