Automattic\WooCommerce\Caching
CacheException::__toString()
Get a string representation of the exception object.
Method of the class: CacheException{}
No Hooks.
Return
String
. String representation of the exception object.
Usage
$CacheException = new CacheException(); $CacheException->__toString(): string;
CacheException::__toString() CacheException:: toString code WC 9.4.2
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}"; }