class 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

4 files declare their use of QueryException
Condition.php in drupal/core/lib/Drupal/Core/Config/Entity/Query/Condition.php
Contains \Drupal\Core\Config\Entity\Query\Condition.
Query.php in drupal/core/modules/field_sql_storage/lib/Drupal/field_sql_storage/Entity/Query.php
Definition of Drupal\field_sql_storage\Entity\Query.
QueryFactory.php in drupal/core/lib/Drupal/Core/Config/Entity/Query/QueryFactory.php
Contains \Drupal\Core\Config\Entity\Query\QueryFactory.
Tables.php in drupal/core/modules/field_sql_storage/lib/Drupal/field_sql_storage/Entity/Tables.php
Definition of Drupal\field_sql_storage\Entity\Tables.

File

drupal/core/lib/Drupal/Core/Entity/Query/QueryException.php, line 17
Contains \Drupal\Core\Entity\QueryException.

Namespace

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

}

Members