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

namespace yii\base;

/**
Qiang Xue committed
13
 * UnknownMethodException represents an exception caused by accessing unknown object methods.
Qiang Xue committed
14 15 16 17
 *
 * @author Qiang Xue <qiang.xue@gmail.com>
 * @since 2.0
 */
Qiang Xue committed
18
class UnknownMethodException extends Exception
Qiang Xue committed
19
{
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
	public function getName()
	{
25
		return \Yii::t('yii|Unknown Method');
Qiang Xue committed
26
	}
Qiang Xue committed
27 28
}