class QueryException

Same name in other branches
  1. 9 core/lib/Drupal/Core/Entity/Query/QueryException.php \Drupal\Core\Entity\Query\QueryException
  2. 8.9.x core/lib/Drupal/Core/Entity/Query/QueryException.php \Drupal\Core\Entity\Query\QueryException
  3. 11.x core/lib/Drupal/Core/Entity/Query/QueryException.php \Drupal\Core\Entity\Query\QueryException

Exception thrown by Query() on unsupported query syntax.

Some storage modules might not support the full range of the syntax for conditions, and will raise a QueryException when an unsupported condition was specified.

Hierarchy

  • class \Drupal\Core\Entity\Query\QueryException extends \Drupal\Core\Entity\Query\Exception

Expanded class hierarchy of QueryException

7 files declare their use of QueryException
Condition.php in core/lib/Drupal/Core/Config/Entity/Query/Condition.php
EntityQueryTest.php in core/tests/Drupal/KernelTests/Core/Entity/EntityQueryTest.php
Query.php in core/lib/Drupal/Core/Entity/Query/Sql/Query.php
QueryFactory.php in core/lib/Drupal/Core/Config/Entity/Query/QueryFactory.php
QueryFactory.php in core/lib/Drupal/Core/Entity/KeyValueStore/Query/QueryFactory.php

... See full list

File

core/lib/Drupal/Core/Entity/Query/QueryException.php, line 12

Namespace

Drupal\Core\Entity\Query
View source
class QueryException extends \Exception {

}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.