class RulesIntegrityException

Indicates the Rules configuration failed the integrity check.

Hierarchy

Expanded class hierarchy of RulesIntegrityException

See also

RulesPlugin::integrityCheck()

File

includes/rules.core.inc, line 2894

View source
class RulesIntegrityException extends RulesException {
    public $msg;
    public $element;
    public $keys = array();
    
    /**
     * Constructs a RulesIntegrityException object.
     *
     * @param string $msg
     *   The exception message, already translated.
     * @param $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.
     *   @code array($element, 'parameter', 'node') @endcode
     */
    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);
    }

}

Members

Title Sort descending Modifiers Object type Summary
RulesIntegrityException::$element public property
RulesIntegrityException::$keys public property
RulesIntegrityException::$msg public property
RulesIntegrityException::__construct public function Constructs a RulesIntegrityException object.