Yoast\WP\SEO\MyYoast_Client\Application\Exceptions

Token_Request_Failed_Exception::__constructpublicYoast 1.0

Token_Request_Failed_Exception constructor.

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

Хуков нет.

Возвращает

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

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

$Token_Request_Failed_Exception = new Token_Request_Failed_Exception();
$Token_Request_Failed_Exception->__construct( $error_code, $error_description, $code, ?Throwable $previous );
$error_code(строка) (обязательный)
The OAuth error code.
$error_description(строка)
A human-readable description.
По умолчанию: ''
$code(int)
The HTTP status code.
?Throwable $previous
.
По умолчанию: null

Код Token_Request_Failed_Exception::__construct() Yoast 28.3

public function __construct( string $error_code, string $error_description = '', int $code = 0, ?Throwable $previous = null ) {
	$this->error_code = $error_code;

	$message = $error_code;
	if ( $error_description !== '' ) {
		$message .= ': ' . $error_description;
	}

	parent::__construct( $message, $code, $previous );
}