[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-includes/php-ai-client/src/Providers/Http/Exception/ -> NetworkException.php (summary)

(no description)

File Size: 57 lines (2 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

NetworkException:: (2 methods):
  getRequest()
  fromPsr18NetworkException()


Class: NetworkException  - X-Ref

Exception thrown for network-related errors.

This includes HTTP transport errors, connection failures,
timeouts, and other network-related issues.

getRequest()   X-Ref
Returns the request that failed as our Request DTO.

return: Request

fromPsr18NetworkException(RequestInterface $psrRequest, \Throwable $networkException)   X-Ref
Creates a NetworkException from a PSR-18 network exception.

return: self
param: RequestInterface $psrRequest The PSR-7 request that failed.
param: \Throwable $networkException The PSR-18 network exception.



Generated : Sat Jun 13 09:38:55 2026 Cross-referenced by PHPXref