Error
Less than 1 minute
Error
Methods
errorAndDie
This function handles errors and terminates the script execution.
public errorAndDie(): voiddieDieDie
Terminates the script execution and displays an error message.
public dieDieDie(\Throwable $err): voidThis 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 message or Throwable object |
traceAndDie
Traces the current execution and terminates the script.
public traceAndDie(): voidThis 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 Mon, 27 Oct 2025 13:01:29 +0000