Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
chromed
/
wp-content
/
plugins
/
woocommerce
/
src
/
Internal
/
PushNotifications
/
Exceptions
:
PushTokenInvalidDataException.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?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 ); } }