Automattic\WooCommerce\Internal\Fulfillments
FulfillmentException{}└─ ApiException
FulfillmentException class. This exception is thrown when there is an issue with fulfillment operations, such as creating, updating, or deleting fulfillments.
No Hooks.
Usage
$FulfillmentException = new FulfillmentException(); // use class methods
Methods
- public __construct( string $message, int $http_status_code = 400, array $additional_data = array() )
FulfillmentException{} FulfillmentException{} code WC 10.3.3
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 );
}
}