yii\base\ExitException - Yii2 类参考手册

Class yii\base\ExitException

Inheritanceyii\base\ExitException » Exception
Available since version2.0

ExitException represents a normal termination of an application.

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

Public Properties

隐藏继承的属性 Hide inherited properties

属性Property类型 Type简介 Description定义在 Defined By
$statusCode integer The exit status code yii\base\ExitException

Public Methods

隐藏继承的方法 Hide inherited methods

方法 Method简介 Description定义在 Defined By
__construct() Constructor. yii\base\ExitException

属性详情 Property Details

$statusCode public property

The exit status code

public integer $statusCode null

方法详情 Method Details

__construct() public method


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.