Yoast\WP\SEO\Exceptions\OAuth\Tokens

Failed_Storage_Exception::__construct()publicYoast 1.0

Failed_Storage_Exception constructor.

{} Это метод класса: Failed_Storage_Exception{}

Хуков нет.

Возвращает

null. Ничего.

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

$Failed_Storage_Exception = new Failed_Storage_Exception();
$Failed_Storage_Exception->__construct( $reason );
$reason(строка)
The reason why token storage failed. Optional.
По умолчанию: ''

Код Failed_Storage_Exception::__construct() Yoast 19.7.1

public function __construct( $reason = '' ) {
	$message = ( $reason ) ? \sprintf( 'Token storing failed. Reason: %s. Please try again', $reason ) : self::DEFAULT_MESSAGE;

	parent::__construct( $message, 500 );
}