mirror of
https://github.com/doctrine/dbal.git
synced 2026-03-23 22:32:15 +01:00
As per the decision we made during the hackathon. psalm-immutable annotations have been dropped, as they were only introduced to sastisfy Psalm
18 lines
374 B
PHP
18 lines
374 B
PHP
<?php
|
|
|
|
namespace Doctrine\DBAL\Exception;
|
|
|
|
use Doctrine\DBAL\Exception;
|
|
|
|
/**
|
|
* Exception to be thrown when invalid arguments are passed to any DBAL API
|
|
*/
|
|
class InvalidArgumentException extends Exception
|
|
{
|
|
/** @return self */
|
|
public static function fromEmptyCriteria()
|
|
{
|
|
return new self('Empty criteria was used, expected non-empty criteria');
|
|
}
|
|
}
|