Methods |
public
|
register(): $this
Register error, exception and shutdown handlers
Register error, exception and shutdown handlers
|
#
|
public
|
isRegistered(): bool
Check if error, exception and shutdown handlers are registered
Check if error, exception and shutdown handlers are registered
|
#
|
public
|
isShuttingDown(): bool
Check if the running script is terminating
Check if the running script is terminating
|
#
|
public
|
isShuttingDownOnError(): bool
Check if the running script is terminating after a fatal error, uncaught
exception or exit signal
Check if the running script is terminating after a fatal error, uncaught
exception or exit signal
|
#
|
public
|
getExitStatus(): int
Get the exit status of the running script if it is terminating
Get the exit status of the running script if it is terminating
Throws
|
#
|
public
|
deregister(): $this
Deregister previously registered error and exception handlers
Deregister previously registered error and exception handlers
|
#
|
public
|
silencePath(string $path, int $levels = E_DEPRECATED | E_USER_DEPRECATED): $this
Silence errors in a file or directory
Silence errors in a file or directory
|
#
|
public
|
silencePattern(string $pattern, int $levels = E_DEPRECATED | E_USER_DEPRECATED): $this
Silence errors in paths that match a regular expression
Silence errors in paths that match a regular expression
|
#
|
public
|
handleExitSignal(int $exitStatus): void
Report the exit status of the running script before it terminates on
SIGTERM, SIGINT or SIGHUP
Report the exit status of the running script before it terminates on
SIGTERM, SIGINT or SIGHUP
Throws
LogicException |
if the instance is not registered to handle errors
and exceptions.
|
|
#
|