InvalidArgumentException.php 417 Bytes
Newer Older
1 2 3 4 5 6 7 8
<?php

namespace Doctrine\DBAL\Exception;

use Doctrine\DBAL\DBALException;

/**
 * Exception to be thrown when invalid arguments are passed to any DBAL API
9 10
 *
 * @psalm-immutable
11 12 13 14 15 16 17 18 19 20 21
 */
class InvalidArgumentException extends DBALException
{
    /**
     * @return self
     */
    public static function fromEmptyCriteria()
    {
        return new self('Empty criteria was used, expected non-empty criteria');
    }
}