Yoast\WP\SEO\Exceptions\OAuth\Tokens

Failed_Storage_Exception::__construct()publicYoast 1.0

Failed_Storage_Exception constructor.

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

Хуков нет.

Возвращает

null. Ничего (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 24.0

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

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