Automattic\WooCommerce\Caching

CacheException::get_errors │ public │ WC 1.0

Gets the array of error messages passed to the exception constructor.

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

Хуков нет.

Возвращает

array. Error messages passed to the exception constructor.

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

$CacheException = new CacheException();
$CacheException->get_errors(): array;

Код CacheException::get_errors() WC 11.2.1

public function get_errors(): array {
	return $this->errors;
}