InvalidArgumentException.php 409 B

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