Yoast\WP\SEO\Abilities\Domain\Exceptions

Unavailable_Global_Setting_Target_Exception::__construct │ public │ Yoast 1.0

Constructor of the exception.

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

Хуков нет.

Возвращает

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

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

$Unavailable_Global_Setting_Target_Exception = new Unavailable_Global_Setting_Target_Exception();
$Unavailable_Global_Setting_Target_Exception->__construct( $error_code, $message );
$error_code(строка) (обязательный)
The machine-readable code of the error.
$message(строка) (обязательный)
Why the global settings cannot be changed, meant to be relayed to the user.

Код Unavailable_Global_Setting_Target_Exception::__construct() Yoast 28.9

public function __construct( string $error_code, string $message ) {
	parent::__construct( $message, 400 );

	$this->error_code = $error_code;
}