You are here

InvalidBehaviorSettingException.php in Rabbit Hole 2.x

Same filename and directory in other branches
  1. 8 src/Exception/InvalidBehaviorSettingException.php

File

src/Exception/InvalidBehaviorSettingException.php
View source
<?php

namespace Drupal\rabbit_hole\Exception;


/**
 * Exception for the case of invalid behavior settings.
 */
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();
  }

}

Classes

Namesort descending Description
InvalidBehaviorSettingException Exception for the case of invalid behavior settings.