class InvalidQueryException

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Database/InvalidQueryException.php \Drupal\Core\Database\InvalidQueryException
  2. 8.9.x core/lib/Drupal/Core/Database/InvalidQueryException.php \Drupal\Core\Database\InvalidQueryException
  3. 10 core/lib/Drupal/Core/Database/InvalidQueryException.php \Drupal\Core\Database\InvalidQueryException

Exception thrown if a query would be invalid.

This exception is thrown e.g. when trying to have an IN condition with an empty array.

Hierarchy

Expanded class hierarchy of InvalidQueryException

4 files declare their use of InvalidQueryException
Condition.php in core/lib/Drupal/Core/Database/Query/Condition.php
ConditionTest.php in core/tests/Drupal/Tests/Core/Database/ConditionTest.php
QueryTest.php in core/tests/Drupal/KernelTests/Core/Database/QueryTest.php
SelectTest.php in core/tests/Drupal/KernelTests/Core/Database/SelectTest.php

File

core/lib/Drupal/Core/Database/InvalidQueryException.php, line 11

Namespace

Drupal\Core\Database
View source
class InvalidQueryException extends \InvalidArgumentException implements DatabaseException {

}

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