0 follower

Class yii\base\ExitException

Inheritanceyii\base\ExitException » Exception
Available since version2.0
Source Code 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.

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

Hide inherited properties

$statusCode public property

The exit status code

public integer $statusCode null

Method Details

Hide inherited methods

__construct() public method

Constructor.

public mixed __construct ( integer $status 0, string $message null, integer $code 0, Throwable|null $previous null )
$status integer

The exit status code

$message string

Error message

$code integer

Error code

$previous Throwable|null

The previous exception used for the exception chaining.

 public function __construct($status = 0, $message = null, $code = 0, $previous = null) { $this->statusCode = $status; if ($previous === null) { parent::__construct((string)$message, $code); } else { parent::__construct((string)$message, $code, $previous); } }