You are here

class InvalidBehaviorSettingException in Rabbit Hole 8

Same name and namespace in other branches
  1. 2.x src/Exception/InvalidBehaviorSettingException.php \Drupal\rabbit_hole\Exception\InvalidBehaviorSettingException

Exception for the case of invalid behavior settings.

Hierarchy

Expanded class hierarchy of InvalidBehaviorSettingException

2 files declare their use of InvalidBehaviorSettingException
BehaviorSettings.php in src/Entity/BehaviorSettings.php
RabbitHoleBehaviorSettingsEntityMethodsTest.php in tests/src/Functional/RabbitHoleBehaviorSettingsEntityMethodsTest.php

File

src/Exception/InvalidBehaviorSettingException.php, line 8

Namespace

Drupal\rabbit_hole\Exception
View source
class InvalidBehaviorSettingException extends \Exception {

  /**
   * Rabbit Hole setting name.
   *
   * @var string
   */
  private $setting;

  /**
   * InvalidBehaviorSettingException constructor.
   *
   * @param string $setting
   *   Rabbit Hole setting name.
   */
  public function __construct($setting) {
    parent::__construct();
    $this->setting = $setting;
  }

  /**
   * Returns invalid setting name.
   */
  public function getSetting() {
    return $this
      ->setting();
  }

}

Members

Namesort descending Modifiers Type Description Overrides
InvalidBehaviorSettingException::$setting private property Rabbit Hole setting name.
InvalidBehaviorSettingException::getSetting public function Returns invalid setting name.
InvalidBehaviorSettingException::__construct public function InvalidBehaviorSettingException constructor.