Automattic\WooCommerce\Caching

CacheException::get_errors()publicWC 1.0

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

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

Хуков нет.

Возвращает

Массив. Error messages passed to the exception constructor.

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

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

Код CacheException::get_errors() WC 8.7.0

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