class InvalidQueryException

Same name in other branches
  1. 9 core/lib/Drupal/Core/Database/InvalidQueryException.php \Drupal\Core\Database\InvalidQueryException
  2. 10 core/lib/Drupal/Core/Database/InvalidQueryException.php \Drupal\Core\Database\InvalidQueryException
  3. 11.x 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

2 files declare their use of InvalidQueryException
Condition.php in core/lib/Drupal/Core/Database/Query/Condition.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.