WpOrg\Requests

Exception::__construct()publicWP 1.0

Create a new exception

Method of the class: Exception{}

No Hooks.

Return

null. Nothing (null).

Usage

$Exception = new Exception();
$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

Exception::__construct() code WP 6.6.2

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

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