Automattic\WooCommerce\Internal\Fulfillments
FulfillmentException::__construct
Setup exception.
Method of the class: FulfillmentException{}
No Hooks.
Returns
null. Nothing (null).
Usage
$FulfillmentException = new FulfillmentException(); $FulfillmentException->__construct( $message, $http_status_code, $additional_data );
- $message(string) (required)
- User-friendly translated error message, e.g. 'Fulfillment creation failed'.
- $http_status_code(int)
- Proper HTTP status code to respond with.
Default: 400 (Bad request) - $additional_data(array)
- Extra data (key value pairs) to expose in the error response.
Default: empty array
FulfillmentException::__construct() FulfillmentException:: construct code WC 10.3.3
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 );
}