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

useException()

No description

create(mixed $callback, null $modeException = NULL)

No description

__construct($newFrame)

No description

__destruct()

No description

static 
getActive()

Read the active error-handler settings

static 
setActive(string $frame)

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)

Parameters

mixed $callback
null $modeException

Return Value

CRM_Core_TemporaryErrorScope

at line 59
__construct($newFrame)

Parameters

$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

Parameters

string $frame