Exception.php 545 B

12345678910111213141516171819202122232425262728
  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\console;
  8. use yii\base\UserException;
  9. /**
  10. * Exception represents an exception caused by incorrect usage of a console command.
  11. *
  12. * @author Qiang Xue <qiang.xue@gmail.com>
  13. * @since 2.0
  14. */
  15. class Exception extends UserException
  16. {
  17. /**
  18. * @return string the user-friendly name of this exception
  19. */
  20. public function getName()
  21. {
  22. return 'Error';
  23. }
  24. }