ExitException
API reference › yii › base › ExitException
ExitException represents a normal termination of an application.
Do not catch ExitException. Yii will handle this exception to terminate the application gracefully.
Properties
Section titled “Properties”| Property | Type | Description | Defined by |
|---|---|---|---|
$statusCode | int | The exit status code Default: null. | ExitException |
Methods
Section titled “Methods”| Method | Description | Defined by |
|---|---|---|
__construct() | Constructor. | ExitException |
Method details
Section titled “Method details”__construct()
Section titled “__construct() ”public function __construct(int $status = 0, string $message = null, int $code = 0, Throwable|null $previous = null)Constructor.
Parameters
| Parameter | Type | Description |
|---|---|---|
$status | int | The exit status code |
$message | string | Error message |
$code | int | Error code |
$previous | Throwable| | The previous exception used for the exception chaining. |