Automattic\WooCommerce\Internal\PushNotifications\Exceptions

PushTokenNotFoundException{}WC 10.5.0└─ WC_Data_Exception

Exception thrown when a push token cannot be found.

Хуков нет.

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

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

Методы

  1. public __construct()

Список изменений

С версии 10.5.0 Введена.

Код PushTokenNotFoundException{} WC 10.8.1

class PushTokenNotFoundException extends WC_Data_Exception {
	/**
	 * Constructor.
	 *
	 * @since 10.6.0
	 */
	public function __construct() {
		parent::__construct(
			'woocommerce_invalid_push_token',
			'Push token could not be found.',
			WP_Http::NOT_FOUND
		);
	}
}