Automattic\WooCommerce\Caching

CacheException::__construct()publicWC 1.0

Creates a new instance of the class.

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

Хуков нет.

Возвращает

null. Ничего (null).

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

$CacheException = new CacheException();
$CacheException->__construct( $message, $thrower, $cached_id, ?array $errors, $code, $previous );
$message(строка) (обязательный)
The exception message.
$thrower(ObjectCache) (обязательный)
The object that is throwing the exception.
$cached_id(int|строка|null)
The involved cached object id, if available.
По умолчанию: null
?array $errors **
-
По умолчанию: null
$code(разное)
An error code, if available.
$previous(\Throwable|null)
The previous exception, if available.
По умолчанию: null

Код CacheException::__construct() WC 8.7.0

public function __construct( string $message, ObjectCache $thrower, $cached_id = null, ?array $errors = null, $code = 0, \Throwable $previous = null ) {
	$this->errors    = $errors ?? array();
	$this->thrower   = $thrower;
	$this->cached_id = $cached_id;

	parent::__construct( $message, $code, $previous );
}