Class yii\base\ExitException

继承yii\base\ExitException » Exception
可用自版本2.0
源代码 https://github.com/yiisoft/yii2/blob/master/framework/base/ExitException.php

ExitException represents a normal termination of an application.

Do not catch ExitException. Yii will handle this exception to terminate the application gracefully.

公共属性

隐藏继承的属性

属性类型描述定义在
$statusCode integer The exit status code yii\base\ExitException

公共方法

隐藏继承的方法

方法描述定义在
__construct() Constructor. yii\base\ExitException

属性详情

$statusCode public 属性

The exit status code

public integer $statusCode null

方法详情

__construct() public 方法

Constructor.

public void __construct ( $status 0, $message null, $code 0, Exception $previous null )
$status integer

The exit status code

$message string

Error message

$code integer

Error code

$previous Exception

The previous exception used for the exception chaining.