Automattic\WooCommerce\Caching
CacheException::__toString
Get a string representation of the exception object.
Method of the class: CacheException{}
No Hooks.
Returns
String. String representation of the exception object.
Usage
$CacheException = new CacheException(); $CacheException->__toString(): string;
CacheException::__toString() CacheException:: toString code WC 10.3.6
public function __toString(): string {
$cached_id_part = $this->cached_id ? ", id: {$this->cached_id}" : '';
return "CacheException: [{$this->thrower->get_object_type()}{$cached_id_part}]: {$this->message}";
}