WC_WCCOM_Site_Installation_State::capture_failure()publicWC 1.0

Capture an installation failure.

Method of the class: WC_WCCOM_Site_Installation_State{}

No Hooks.

Return

null. Nothing (null).

Usage

$WC_WCCOM_Site_Installation_State = new WC_WCCOM_Site_Installation_State();
$WC_WCCOM_Site_Installation_State->capture_failure( $step_name, $error_code );
$step_name(string) (required)
The step name.
$error_code(string) (required)
The error code.

WC_WCCOM_Site_Installation_State::capture_failure() code WC 9.4.2

public function capture_failure( $step_name, $error_code ) {
	$this->last_step_name   = $step_name;
	$this->last_step_error  = $error_code;
	$this->last_step_status = self::STEP_STATUS_FAILED;
}