HEX
Server: Apache/2.4.65 (Debian)
System: Linux wordpress-7cb4c6b6f6-dr82f 5.15.0-131-generic #141-Ubuntu SMP Fri Jan 10 21:18:28 UTC 2025 x86_64
User: www-data (33)
PHP: 8.3.27
Disabled: NONE
Upload Files
File: /var/www/html/wp-content/plugins/woocommerce/src/Internal/Fulfillments/FulfillmentException.php
<?php declare( strict_types = 1 );

namespace Automattic\WooCommerce\Internal\Fulfillments;

use Automattic\WooCommerce\Internal\Admin\Settings\Exceptions\ApiException;

/**
 * FulfillmentException class.
 * This exception is thrown when there is an issue with fulfillment operations,
 * such as creating, updating, or deleting fulfillments.
 */
class FulfillmentException extends ApiException {
	/**
	 * Setup exception.
	 *
	 * @param string $message          User-friendly translated error message, e.g. 'Fulfillment creation failed'.
	 * @param int    $http_status_code Optional. Proper HTTP status code to respond with.
	 *                                 Defaults to 400 (Bad request).
	 * @param array  $additional_data  Optional. Extra data (key value pairs) to expose in the error response.
	 *                                 Defaults to empty array.
	 */
	public function __construct( string $message, int $http_status_code = 400, array $additional_data = array() ) {
		parent::__construct( 'woocommerce_fulfillment_error', $message, $http_status_code, $additional_data );
	}
}