WordPress at Your Fingertips
function is not described

Requests_Exception::__construct() public WP 1.0

Create a new exception

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

No Hooks.


null. Nothing.


$Requests_Exception = new Requests_Exception();
$Requests_Exception->__construct( $message, $type, $data, $code );
$message(string) (required)
Exception message
$type(string) (required)
Exception type
Associated data
Exception numerical code, if applicable

Code of Requests_Exception::__construct() WP 5.7.2

public function __construct($message, $type, $data = null, $code = 0) {
	parent::__construct($message, $code);

	$this->type = $type;
	$this->data = $data;