Exception.php 566 Bytes
Newer Older
1 2
<?php
/**
Qiang Xue committed
3
 * Exception class file.
4 5 6 7 8 9 10 11
 *
 * @link http://www.yiiframework.com/
 * @copyright Copyright &copy; 2008 Yii Software LLC
 * @license http://www.yiiframework.com/license/
 */

namespace yii\console;

Qiang Xue committed
12 13
use yii\base\UserException;

14
/**
Qiang Xue committed
15
 * Exception represents an exception caused by incorrect usage of a console command.
16 17 18 19
 *
 * @author Qiang Xue <qiang.xue@gmail.com>
 * @since 2.0
 */
Qiang Xue committed
20
class Exception extends UserException
21 22 23 24 25 26
{
	/**
	 * @return string the user-friendly name of this exception
	 */
	public function getName()
	{
27
		return \Yii::t('yii|Error');
28 29 30
	}
}