[ Index ] |
PHP Cross Reference of phpBB-3.3.14-deutsch |
[Summary view] [Print] [Text view]
1 <?php 2 3 /* 4 * This file is part of the Symfony package. 5 * 6 * (c) Fabien Potencier <fabien@symfony.com> 7 * 8 * For the full copyright and license information, please view the LICENSE 9 * 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 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Mon Nov 25 19:05:08 2024 | Cross-referenced by PHPXref 0.7.1 |