File: //proc/self/cwd/wp-content/plugins/woocommerce-zapier/legacy/Exception/MissingSampleException.php
<?php
namespace OM4\Zapier\Exception;
use OM4\WooCommerceZapier\Exception\BaseException;
defined( 'ABSPATH' ) || exit;
/**
* Exception to trigger when sample data for payload is missing.
*
* @deprecated 2.0.0
*/
class MissingSampleException extends BaseException {
/**
* Construct the exception.
*
* @link https://php.net/manual/en/exception.construct.php
*
* @param string $class The name of the class.
* @param int $code [optional] The Exception code.
*/
public function __construct( $class, $code = 0 ) {
$message = sprintf(
'Missing sample data for %s class.',
$class
);
parent::__construct( $message, $code );
}
}