WordPress\AiClient\Providers\Http\Exception

ClientException::getRequest │ public │ WP 0.2.0

Returns the request that failed as our Request DTO.

Метод класса: ClientException{}

Хуков нет.

Возвращает

Request.

Использование

$ClientException = new ClientException();
$ClientException->getRequest(): Request;

Список изменений

С версии 0.2.0 Введена.

Код ClientException::getRequest() WP 7.1.2

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;
}