WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

Requests_Exception_HTTP::__construct() public WP 1.0

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.

Это метод класса: Requests_Exception_HTTP{}

Хуков нет.


Null. Ничего.


$Requests_Exception_HTTP = new Requests_Exception_HTTP();
$Requests_Exception_HTTP->__construct( $reason, $data );
Reason phrase
По умолчанию: null
Associated data
По умолчанию: null

Код Requests_Exception_HTTP::__construct() WP 5.5.1

public function __construct($reason = null, $data = null) {
	if ($reason !== null) {
		$this->reason = $reason;

	$message = sprintf('%d %s', $this->code, $this->reason);
	parent::__construct($message, 'httpresponse', $data, $this->code);