WordPress at a glance
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.

Return

Null. Nothing.

Usage

$Requests_Exception = new Requests_Exception();
$Requests_Exception->__construct( $message, $type, $data, $code );
$message(string) (required)
Exception message
$type(string) (required)
Exception type
$data(mixed)
Associated data
Default: null
$code(int)
Exception numerical code, if applicable
Default: 0

Code of Requests_Exception::__construct() WP 5.5.1

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

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