class InvalidQueryException
Same name in other branches
- 9 core/lib/Drupal/Core/Database/InvalidQueryException.php \Drupal\Core\Database\InvalidQueryException
- 10 core/lib/Drupal/Core/Database/InvalidQueryException.php \Drupal\Core\Database\InvalidQueryException
- 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
- class \Drupal\Core\Database\InvalidQueryException extends \Drupal\Core\Database\InvalidArgumentException implements \Drupal\Core\Database\DatabaseException
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\DatabaseView 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.