NotSupportedException.php 583 Bytes
Newer Older
Qiang Xue committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
<?php
/**
 * NotSupportedException class file.
 *
 * @link http://www.yiiframework.com/
 * @copyright Copyright &copy; 2008 Yii Software LLC
 * @license http://www.yiiframework.com/license/
 */

namespace yii\base;

/**
 * NotSupportedException represents an exception caused by accessing features that are not supported.
 *
 * @author Qiang Xue <qiang.xue@gmail.com>
 * @since 2.0
 */
class NotSupportedException extends \Exception
{
Qiang Xue committed
20
	/**
Qiang Xue committed
21
	 * @return string the user-friendly name of this exception
Qiang Xue committed
22
	 */
Qiang Xue committed
23 24 25 26
	public function getName()
	{
		return \Yii::t('yii', 'Not Supported');
	}
Qiang Xue committed
27 28
}