Exception.php 537 Bytes
Newer Older
1 2 3
<?php
/**
 * @link http://www.yiiframework.com/
Qiang Xue committed
4
 * @copyright Copyright (c) 2008 Yii Software LLC
5 6 7 8 9
 * @license http://www.yiiframework.com/license/
 */

namespace yii\console;

Qiang Xue committed
10 11
use yii\base\UserException;

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