InvalidCallException.php 525 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 8 9 10
 * @license http://www.yiiframework.com/license/
 */

namespace yii\base;

/**
Qiang Xue committed
11
 * InvalidCallException represents an exception caused by calling a method in a wrong way.
Qiang Xue committed
12 13 14 15
 *
 * @author Qiang Xue <qiang.xue@gmail.com>
 * @since 2.0
 */
Qiang Xue committed
16
class InvalidCallException extends Exception
Qiang Xue committed
17
{
Qiang Xue committed
18
	/**
Qiang Xue committed
19
	 * @return string the user-friendly name of this exception
Qiang Xue committed
20
	 */
Qiang Xue committed
21 22
	public function getName()
	{
23
		return \Yii::t('yii', 'Invalid Call');
Qiang Xue committed
24
	}
Qiang Xue committed
25
}