alexdebril/feed-io

View on GitHub
src/FeedIo/Adapter/ServerErrorException.php

Summary

Maintainability
A
0 mins
Test Coverage
F
50%
<?php

declare(strict_types=1);

namespace FeedIo\Adapter;

use Psr\Http\Message\ResponseInterface;

class ServerErrorException extends HttpRequestException
{
    public function __construct(
        protected ResponseInterface $response,
        float $duration = 0
    ) {
        parent::__construct(
            'internal server error',
            $duration
        );
    }

    public function getResponse(): ResponseInterface
    {
        return $this->response;
    }
}