InvalidParamException.php 631 B

123456789101112131415161718192021222324252627
  1. <?php
  2. /**
  3. * @link http://www.yiiframework.com/
  4. * @copyright Copyright (c) 2008 Yii Software LLC
  5. * @license http://www.yiiframework.com/license/
  6. */
  7. namespace yii\base;
  8. /**
  9. * InvalidParamException represents an exception caused by invalid parameters passed to a method.
  10. *
  11. * @author Qiang Xue <qiang.xue@gmail.com>
  12. * @since 2.0
  13. * @deprecated since 2.0.14. Use [[InvalidArgumentException]] instead.
  14. */
  15. class InvalidParamException extends \BadMethodCallException
  16. {
  17. /**
  18. * @return string the user-friendly name of this exception
  19. */
  20. public function getName()
  21. {
  22. return 'Invalid Parameter';
  23. }
  24. }