0 追蹤者(follower)

類別 yii\console\Exception(Class yii\console\Exception)

繼承(Inheritance)yii\console\Exception » yii\base\UserException » yii\base\Exception » Exception
子類別(Subclasses)yii\console\UnknownCommandException
自版本起可用(Available since version)2.0
原始碼(Source Code) https://github.com/yiisoft/yii2/blob/master/framework/console/Exception.php

Exception 代表由不正確地使用主控台命令所造成的例外。(Exception represents an exception caused by incorrect usage of a console command.)

公開方法(Public Methods)

隱藏繼承的方法(Hide inherited methods)

方法(Method) 描述(Description) 定義於(Defined By)
getName() yii\console\Exception

方法詳情(Method Details)

隱藏繼承的方法(Hide inherited methods)

getName() 公開方法(public method)

public string getName ( )
回傳(return) string

此例外的使用者友善名稱(The user-friendly name of this exception)

                public function getName()
{
    return 'Error';
}