Automattic\WooCommerce\Caching
CacheException::get_errors()
Gets the array of error messages passed to the exception constructor.
Method of the class: CacheException{}
No Hooks.
Return
Array
. Error messages passed to the exception constructor.
Usage
$CacheException = new CacheException(); $CacheException->get_errors(): array;
CacheException::get_errors() CacheException::get errors code WC 9.4.2
public function get_errors(): array { return $this->errors; }