wp-includes/php-ai-client/src/Providers/Http/Exception/NetworkException.php:49Creates a NetworkException from a PSR-18 network exception.
$psrRequestWordPress\AiClientDependencies\Psr\Http\Message\RequestInterface$networkExceptionThrowableself public static function fromPsr18NetworkException(RequestInterface $psrRequest, \Throwable $networkException): self { $request = Request::fromPsrRequest($psrRequest); $message = sprintf('Network error occurred while sending request to %s: %s', $request->getUri(), $networkException->getMessage()); $exception = new self($message, 0, $networkException); $exception->request = $request; return $exception; }Introduced in 0.2.0. Unchanged from 7.0.4 through 7.1.0.
Signature, return type and hooks compared across 2 parsed releases.
src/wp-includes/php-ai-client/src/Providers/Http/Exception/NetworkException.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.