Yoast\WP\SEO\Expiring_Store\Domain

Corrupted_Value_Exception{}Yoast 1.0└─ RuntimeException

Exception for when a stored value cannot be decoded from JSON.

Хуков нет.

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

$Corrupted_Value_Exception = new Corrupted_Value_Exception();
// use class methods

Методы

  1. public __construct( string $key, string $previous )

Код 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}" );
	}
}