InvalidArgumentException.php 394 B

12345678910111213141516171819
  1. <?php
  2. namespace Doctrine\DBAL\Exception;
  3. use Doctrine\DBAL\DBALException;
  4. /**
  5. * Exception to be thrown when invalid arguments are passed to any DBAL API
  6. */
  7. class InvalidArgumentException extends DBALException
  8. {
  9. /**
  10. * @return self
  11. */
  12. public static function fromEmptyCriteria()
  13. {
  14. return new self('Empty criteria was used, expected non-empty criteria');
  15. }
  16. }