Requests_Exception::__construct()
Create a new exception
Метод класса: Requests_Exception{}
Хуков нет.
Возвращает
null
. Ничего.
Использование
$Requests_Exception = new Requests_Exception(); $Requests_Exception->__construct( $message, $type, $data, $code );
- $message(строка) (обязательный)
- Exception message
- $type(строка) (обязательный)
- Exception type
- $data(разное)
- Associated data
По умолчанию: null - $code(int)
- Exception numerical code, if applicable
Код Requests_Exception::__construct() Requests Exception:: construct WP 6.1.1
public function __construct($message, $type, $data = null, $code = 0) { parent::__construct($message, $code); $this->type = $type; $this->data = $data; }