Yoast\WP\SEO\AI_HTTP_Request\Domain\Exceptions
Remote_Request_Exception::__construct
Устарела с версии 28.4. Больше не поддерживается и может быть удалена. Рекомендуется заменить эту функцию на аналог.
Constructor.
Метод класса: Remote_Request_Exception{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$Remote_Request_Exception = new Remote_Request_Exception(); $Remote_Request_Exception->__construct( $message, $code, $error_identifier, ?Throwable $previous );
- $message(строка)
- The error message.
По умолчанию:'' - $code(int)
- The error status code.
- $error_identifier(строка)
- The error code identifier, used to identify a type of error.
По умолчанию:'' - ?Throwable $previous
- .
По умолчанию:null
Список изменений
| Устарела с | 28.4 |
Код Remote_Request_Exception::__construct() Remote Request Exception:: construct Yoast 28.4
public function __construct( $message = '', $code = 0, $error_identifier = '', ?Throwable $previous = null ) {
\_deprecated_function( __METHOD__, 'Yoast SEO 28.4' );
parent::__construct( $message, $code, $previous );
$this->error_identifier = (string) $error_identifier;
}