CRM_Core_TemporaryErrorScope
class CRM_Core_TemporaryErrorScope
This is an evil, evil work-around for CRM-11043. It is used to temporarily change the error-handling behavior and then automatically restore it -- that protocol is an improvement over the current protocol (in which random bits of code will change the global error handler setting and then forget to change it back). This class and all references to it should be removed in 4.3/4.4 (when we adopt exception-based error handling).
To ensure that new errors arising during execution of the current function are immediately fatal, use:
To ensure that they throw exceptions, use:
Properties
static | $oldFrames |
Methods
No description
No description
No description
No description
No description
Read the active error-handler settings
Set the active error-handler settings
Details
at line 30
static CRM_Core_TemporaryErrorScope
useException()
at line 37
static CRM_Core_TemporaryErrorScope
ignoreException()
at line 47
static CRM_Core_TemporaryErrorScope
create(mixed $callback, null $modeException = NULL)
at line 59
__construct($newFrame)
at line 64
__destruct()
at line 72
static
getActive()
Read the active error-handler settings
at line 85
static
setActive(string $frame)
Set the active error-handler settings