Interface for error handling.
| Methods | |
|---|---|
|
public
|
Disables the trace. |
|
public
|
Enables the trace. |
|
public
|
Returns the last error. |
|
public
|
This is the function for handling of the PHP errors. It is set in the error handler. |
|
public
|
This is the function for handling of the PHP exceptions. It should be called in the catch block to trace detailed information if an exception is thrown. |
|
public
|
Initializes the error handler with parameters. |
|
public
|
Stores the last error. |
|
public
|
Returns the state whether the trace is active or not. |
Disables the trace.
If the trace is active, any eror, warning or notice is traced to the standard file.
Enables the trace.
If the trace is active, any error, warning or notice is traced to the standard file.
Returns the last error.
Returns the last error or an empty string if no error occurred so far.
This is the function for handling of the PHP errors. It is set in the error handler.
| Name | Pass type | Value type | Default value | Description |
|---|---|---|---|---|
| $errno | by value | int |
Error code. |
|
| $errstr | by value | string |
Error text. |
|
| $errfile | by value | string |
Source file where the error occurred. |
|
| $errline | by value | int |
Line number where the error occurred. |
This is the function for handling of the PHP exceptions. It should be called in the catch block to trace detailed information if an exception is thrown.
| Name | Pass type | Value type | Default value | Description |
|---|---|---|---|---|
| $ex | by value | \Throwable |
Thrown exception. |
|
| $errno | by value | int |
Error code. |
Initializes the error handler with parameters.
| Name | Pass type | Value type | Default value | Description |
|---|---|---|---|---|
| $parameters | by value | array |
The parameters may vary for each error handler. |
It might throw an exception in the case of any system errors.
Stores the last error.
| Name | Pass type | Value type | Default value | Description |
|---|---|---|---|---|
| $error | by value | string |
The error text to be stored. |
Returns the state whether the trace is active or not.
If the trace is active, any error, warning or notice is traced to the standard file.
Returns the state whether the trace is active or not.