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

w  
Qiang Xue committed
8 9
namespace yii\base;

Qiang Xue committed
10 11 12 13
/**
 * Exception represents a generic exception for all purposes.
 *
 * @author Qiang Xue <qiang.xue@gmail.com>
w  
Qiang Xue committed
14
 * @since 2.0
Qiang Xue committed
15 16 17
 */
class Exception extends \Exception
{
Qiang Xue committed
18 19 20 21 22
	/**
	 * @return string the user-friendly name of this exception
	 */
	public function getName()
	{
23
		return \Yii::t('yii|Exception');
Qiang Xue committed
24
	}
Zander Baldwin committed
25
}