function RulesIntegrityException::__construct
Constructs a RulesIntegrityException object.
Parameters
string $msg: The exception message, already translated.
$element: The element of a configuration causing the exception or an array consisting of the element and keys specifying a parameter or provided variable causing the exception, e.g.
array(
$element,
'parameter',
'node',
);
File
-
includes/
rules.core.inc, line 2911
Class
- RulesIntegrityException
- Indicates the Rules configuration failed the integrity check.
Code
public function __construct($msg, $element = NULL) {
$this->element = is_array($element) ? array_shift($element) : $element;
$this->keys = is_array($element) ? $element : array();
parent::__construct($msg);
}