You are here

class InvalidQueryException in Drupal 8

Same name and namespace in other branches
  1. 9 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 {

}

Members