Automattic\WooCommerce\Internal\Admin\Settings\Exceptions

ApiException::getErrorCodepublicWC 1.0

Returns the error code.

Method of the class: ApiException{}

No Hooks.

Returns

String. The machine-readable error code.

Usage

$ApiException = new ApiException();
$ApiException->getErrorCode(): string;

ApiException::getErrorCode() code WC 10.7.0

public function getErrorCode(): string {
	return $this->error_code;
}