<?php

namespace WP_Ultimo\Dependencies\Amp\Http\Client;

final class InvalidRequestException extends HttpException
{
    /** @var Request */
    private $request;
    public function __construct(Request $request, string $message, int $code = 0, \Throwable $previous = null)
    {
        parent::__construct($message, $code, $previous);
        $this->request = $request;
    }
    public function getRequest() : Request
    {
        return $this->request;
    }
}
