[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

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

(no description)

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

Defines 1 class

ServerException:: (1 method):
  fromServerErrorResponse()


Class: ServerException  - X-Ref

Exception thrown for 5xx HTTP server errors.

This represents errors where the server failed to fulfill
a valid request due to internal server errors.

fromServerErrorResponse(Response $response)   X-Ref
Creates a ServerException from a server error response.

This method extracts error details from common API response formats
and creates an exception with a descriptive message and status code.

return: self
param: Response $response The HTTP response that failed.



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