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

namespace yii\base;

/**
 * InvalidRouteException represents an exception caused by an invalid route.
 *
 * @author Qiang Xue <qiang.xue@gmail.com>
 * @since 2.0
 */
Qiang Xue committed
18
class InvalidRouteException extends UserException
Qiang Xue committed
19
{
Qiang Xue committed
20 21 22 23 24
	/**
	 * @return string the user-friendly name of this exception
	 */
	public function getName()
	{
25
		return \Yii::t('yii|Invalid Route');
Qiang Xue committed
26
	}
Qiang Xue committed
27 28
}