File "FormException.php"

Full Path: /home/warrior1/public_html/wp-content/plugins/google-listings-and-ads/src/Admin/Input/FormException.php
File size: 668 bytes
MIME-type: text/x-php
Charset: utf-8

<?php
declare( strict_types=1 );

namespace Automattic\WooCommerce\GoogleListingsAndAds\Admin\Input;

use Automattic\WooCommerce\GoogleListingsAndAds\Exception\GoogleListingsAndAdsException;
use Exception;

defined( 'ABSPATH' ) || exit;

/**
 * Class FormException
 *
 * @package Automattic\WooCommerce\GoogleListingsAndAds\Product
 */
class FormException extends Exception implements GoogleListingsAndAdsException {
	/**
	 * Return a new instance of the exception when a submitted form is being modified.
	 *
	 * @return static
	 */
	public static function cannot_modify_submitted(): FormException {
		return new static( 'You cannot modify a submitted form.' );
	}
}