Verzeichnisstruktur phpBB-3.3.15


Veröffentlicht
28.08.2024

So funktioniert es


Auf das letzte Element klicken. Dies geht jeweils ein Schritt zurück

Auf das Icon klicken, dies öffnet das Verzeichnis. Nochmal klicken schließt das Verzeichnis.
Auf den Verzeichnisnamen klicken, dies zeigt nur das Verzeichnis mit Inhalt an

(Beispiel Datei-Icons)

Auf das Icon klicken um den Quellcode anzuzeigen

InvalidConfigurationException.php

Zuletzt modifiziert: 02.04.2025, 15:03 - Dateigröße: 1.08 KiB


01  <?php
02   
03  /*
04   * This file is part of the Symfony package.
05   *
06   * (c) Fabien Potencier <fabien@symfony.com>
07   *
08   * For the full copyright and license information, please view the LICENSE
09   * file that was distributed with this source code.
10   */
11   
12  namespace Symfony\Component\Config\Definition\Exception;
13   
14  /**
15   * A very general exception which can be thrown whenever non of the more specific
16   * exceptions is suitable.
17   *
18   * @author Johannes M. Schmitt <schmittjoh@gmail.com>
19   */
20  class InvalidConfigurationException extends Exception
21  {
22      private $path;
23      private $containsHints = false;
24   
25      public function setPath($path)
26      {
27          $this->path = $path;
28      }
29   
30      public function getPath()
31      {
32          return $this->path;
33      }
34   
35      /**
36       * Adds extra information that is suffixed to the original exception message.
37       *
38       * @param string $hint
39       */
40      public function addHint($hint)
41      {
42          if (!$this->containsHints) {
43              $this->message .= "\nHint: ".$hint;
44              $this->containsHints = true;
45          } else {
46              $this->message .= ', '.$hint;
47          }
48      }
49  }
50