[ Index ]

WordPress 5.4.1

[ Index ]     [ Classes ]     [ Functions ]     [ Variables ]     [ Constants ]     [ Statistics ]    




/wp-includes/Requests/Exception/ -> HTTP.php (summary)

Exception based on HTTP response

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

Defines 1 class

Requests_Exception_HTTP:: (3 methods):

Class: Requests_Exception_HTTP  - X-Ref

Exception based on HTTP response

__construct($reason = null, $data = null)   X-Ref
Create a new exception

There is no mechanism to pass in the status code, as this is set by the
subclass used. Reason phrases can vary, however.

param: string|null $reason Reason phrase
param: mixed $data Associated data

getReason()   X-Ref
Get the status message

get_class($code)   X-Ref
Get the correct exception class for a given error code

param: int|bool $code HTTP status code, or false if unavailable
return: string Exception class name to use

Generated: Tue May 19 15:51:04 2020 Cross-referenced by PHPXref 0.7.1