Function __global->set_exception_handler
Definitions
sources_custom/phpstub.php
- Sets a user-defined exception handler function.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $exception_handler | ?mixed | No | No | required parameter | N/A | N/A | The call back (null: reset to default) |
Returns
- The previously defined error handler
- Type: mixed
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Sets a user-defined exception handler function.
*
* @param ?mixed $exception_handler The call back (null: reset to default)
* @return mixed The previously defined error handler
*/
function set_exception_handler($exception_handler)
* Sets a user-defined exception handler function.
*
* @param ?mixed $exception_handler The call back (null: reset to default)
* @return mixed The previously defined error handler
*/
function set_exception_handler($exception_handler)
