WpOrg\Requests
Exception::__construct
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() Exception:: construct WP 7.0
public function __construct($message, $type, $data = null, $code = 0) {
parent::__construct($message, $code);
$this->type = $type;
$this->data = $data;
}