WpOrg\Requests

Exception::__constructpublicWP 1.0

Create a new exception

Метод класса: Exception{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$Exception = new Exception();
$Exception->__construct( $message, $type, $data, $code );
$message(строка) (обязательный)
Exception message.
$type(строка) (обязательный)
Exception type.
$data(разное)
Associated data.
По умолчанию: null
$code(int)
Exception numerical code, if applicable.

Код Exception::__construct() WP 7.0

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

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