Automattic\WooCommerce\Internal\Admin\Settings\Exceptions

ApiException::getErrorCodepublicWC 1.0

Returns the error code.

Метод класса: ApiException{}

Хуков нет.

Возвращает

Строку. The machine-readable error code.

Использование

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

Код ApiException::getErrorCode() WC 10.9.4

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