File "PushTokenInvalidDataException.php"
Full Path: /home/buyiwexj/public_html/wp-content/plugins/woocommerce/src/Internal/PushNotifications/Exceptions/PushTokenInvalidDataException.php
File size: 633 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
/**
* PushTokenInvalidDataException class file.
*/
declare( strict_types = 1 );
namespace Automattic\WooCommerce\Internal\PushNotifications\Exceptions;
defined( 'ABSPATH' ) || exit;
use WC_Data_Exception;
use WP_Http;
/**
* Exception thrown when push token data is invalid.
*
* @since 10.6.0
*/
class PushTokenInvalidDataException extends WC_Data_Exception {
/**
* Constructor.
*
* @since 10.6.0
* @param string $message The validation error message.
*/
public function __construct( string $message ) {
parent::__construct(
'woocommerce_invalid_data',
$message,
WP_Http::BAD_REQUEST
);
}
}