| Current Path : /proc/thread-self/root/home/rtorresani/www/vendor/webonyx/graphql-php/src/Utils/ |
| Current File : //proc/thread-self/root/home/rtorresani/www/vendor/webonyx/graphql-php/src/Utils/LazyException.php |
<?php declare(strict_types=1);
namespace GraphQL\Utils;
/**
* Allows lazy calculation of a complex message when the exception is used in `assert()`.
*/
class LazyException extends \Exception
{
/** @param callable(): string $makeMessage */
public function __construct(callable $makeMessage)
{
parent::__construct($makeMessage());
}
}