You are here

public function RulesIntegrityException::__construct in Rules 7.2

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 2891
Rules base classes and interfaces needed for any rule evaluation.

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);
}