[ Index ]

PHP Cross Reference of YOURLS

title

Body

[close]

/includes/vendor/rmccue/requests/src/Exception/ -> Http.php (summary)

Exception based on HTTP response

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

Defines 1 class

Http:: (3 methods):
  __construct()
  getReason()
  get_class()


Class: 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.

return: string

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

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



Generated: Sat Nov 9 05:10:01 2024 Cross-referenced by PHPXref 0.7.1