Yoast\WP\SEO\Dashboard\Domain\Analytics_4

Unexpected_Response_Exception{} │ Yoast 1.0└─ Exception

Exception for when an Analytics 4 request returns with an unexpected response.

Хуков нет.

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

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

Методы

  1. public __construct()

Код Unexpected_Response_Exception{} Yoast 28.9

class Unexpected_Response_Exception extends Exception {

	/**
	 * Constructor of the exception.
	 */
	public function __construct() {
		parent::__construct( 'The response from Google Site Kit did not have an expected format.', 400 );
	}
}