Yoast\WP\SEO\Expiring_Store\Domain
Corrupted_Value_Exception{}└─ RuntimeException
Exception for when a stored value cannot be decoded from JSON.
Хуков нет.
Использование
$Corrupted_Value_Exception = new Corrupted_Value_Exception(); // use class methods
Методы
Код Corrupted_Value_Exception{} Corrupted Value Exception{} Yoast 27.8
class Corrupted_Value_Exception extends RuntimeException {
/**
* The constructor.
*
* @param string $key The key whose value is corrupted.
* @param string $previous The underlying JSON decode error message.
*/
public function __construct( string $key, string $previous ) {
parent::__construct( "Failed to decode value for key '{$key}': {$previous}" );
}
}