Automattic\WooCommerce\Vendor\GraphQL\Utils
LazyException{}
Allows lazy calculation of a complex message when the exception is used in assert().
Хуков нет.
Использование
$LazyException = new LazyException(); // use class methods
Методы
Код LazyException{} LazyException{} WC 11.0.1
class LazyException extends \Exception
{
/** @param callable(): string $makeMessage */
public function __construct(callable $makeMessage)
{
parent::__construct($makeMessage());
}
}