NetworkException::getRequest(): WordPressAiClientProvidersHttpDTORequest

In this article

Returns the request that failed as our Request DTO.

Return

WordPressAiClientProvidersHttpDTORequest

Source

public function getRequest(): Request
{
    if ($this->request === null) {
        throw new \RuntimeException('Request object not available. This exception was directly instantiated. ' . 'Use a factory method that provides request context.');
    }
    return $this->request;
}

Changelog

VersionDescription
0.2.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.