Shutdown
Less than 1 minute
Shutdown
Methods
exitWithError
public exitWithError(array $error): neverParameters
| Parameter | Type | Description |
|---|---|---|
$error | array |
exitWithException
This function handles errors and terminates the script execution.
public exitWithException(Exception $exception): neverParameters
| Parameter | Type | Description |
|---|---|---|
$exception | Exception |
fatal
Terminates the script execution and displays an error message.
public fatal(\Throwable $err): neverThis function is used to handle errors and terminate the script execution. It clears the output buffer, sets the HTTP response code to 500, and displays an error message with the provided error information.
Parameters
| Parameter | Type | Description |
|---|---|---|
$err | \Throwable | the error information to be displayed |
trace
Traces the current execution and terminates the script.
public trace(): neverThis function generates a backtrace of the current execution and includes a trace file for debugging purposes. After generating the trace, it terminates the script using the exit function.
Generated by Hazaar API Doc Generator on Sun, 01 Mar 2026 09:22:26 +0000