CRM_Queue_ErrorPolicy
class CRM_Queue_ErrorPolicy
To ensure that PHP errors or unhandled exceptions are reported in JSON format, wrap this around your code. For example:
Properties
$active |
Methods
__construct(null|int $level = NULL)
No description
activate()
Enable the error policy.
deactivate()
Disable the error policy.
mixed
call(callable|array|string $callable)
Execute the callable. Activate and deactivate the error policy automatically.
bool
onError(string $errno, string $errstr, string $errfile, int $errline)
Receive (semi) recoverable error notices.
onShutdown()
Receive non-recoverable error notices
reportError(array $error)
Print a fatal error.
Details
at line 51
__construct(null|int $level = NULL)
at line 62
activate()
Enable the error policy.
at line 81
deactivate()
Disable the error policy.
at line 103
mixed
call(callable|array|string $callable)
Execute the callable. Activate and deactivate the error policy automatically.
at line 128
bool
onError(string $errno, string $errstr, string $errfile, int $errline)
Receive (semi) recoverable error notices.
at line 141
onShutdown()
Receive non-recoverable error notices
at line 157
reportError(array $error)
Print a fatal error.
at line 178
reportException(Exception $e)
Print an unhandled exception.