vendor/overblog/graphql-bundle/src/ExpressionLanguage/Exception/EvaluatorIsNotAllowedException.php line 12

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace Overblog\GraphQLBundle\ExpressionLanguage\Exception;
  4. use Exception;
  5. use Throwable;
  6. class EvaluatorIsNotAllowedException extends Exception
  7. {
  8. public function __construct(string $expressionFunctionName, int $code = 0, Throwable $previous = null)
  9. {
  10. parent::__construct(
  11. "The expression function '$expressionFunctionName' cannot be used by it's evaluator.",
  12. $code,
  13. $previous
  14. );
  15. }
  16. public function __invoke(): void
  17. {
  18. throw $this;
  19. }
  20. }