Requests_Exception::__construct

Advertisement

Summery Summery

Create a new exception

Syntax Syntax

Requests_Exception::__construct( string $message, string $type, mixed $data = null, integer $code )

Parameters Parameters

$message

(string) (Required) Exception message

$type

(string) (Required) Exception type

$data

(mixed) (Optional) Associated data

Default value: null

$code

(integer) (Required) Exception numerical code, if applicable

Source Source

File: wp-includes/Requests/Exception.php

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

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

Advertisement

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.