WordPress at Your Fingertips
function is not described

Requests_Exception_Transport_cURL::__construct() public WP 1.0

{} It's a method of the class: Requests_Exception_Transport_cURL{}

No Hooks.

Return

null. Nothing.

Usage

$Requests_Exception_Transport_cURL = new Requests_Exception_Transport_cURL();
$Requests_Exception_Transport_cURL->__construct( $message, $type, $data, $code );
$message (required)
-
$type (required)
-
$data **
-
Default: null
$code **
-

Code of Requests_Exception_Transport_cURL::__construct() WP 5.8

<?php
public function __construct($message, $type, $data = null, $code = 0) {
	if ($type !== null) {
		$this->type = $type;
	}

	if ($code !== null) {
		$this->code = $code;
	}

	if ($message !== null) {
		$this->reason = $message;
	}

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