Automattic\WooCommerce\Internal\Fulfillments
FulfillmentException::__construct
Setup exception.
Метод класса: FulfillmentException{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$FulfillmentException = new FulfillmentException(); $FulfillmentException->__construct( $message, $http_status_code, $additional_data );
- $message(строка) (обязательный)
- User-friendly translated error message, e.g. 'Fulfillment creation failed'.
- $http_status_code(int)
- Proper HTTP status code to respond with.
По умолчанию: 400 (Bad request) - $additional_data(массив)
- Extra data (key value pairs) to expose in the error response.
По умолчанию: empty array
Код FulfillmentException::__construct() FulfillmentException:: construct WC 10.3.6
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 );
}