4 * This file is part of the Symfony package.
6 * (c) Fabien Potencier <fabien@symfony.com>
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 namespace Symfony\Component\Config\Definition\Exception;
15 * A very general exception which can be thrown whenever non of the more specific
16 * exceptions is suitable.
18 * @author Johannes M. Schmitt <schmittjoh@gmail.com>
20 class InvalidConfigurationException extends Exception
23 private $containsHints = false;
25 public function setPath($path)
30 public function getPath()
36 * Adds extra information that is suffixed to the original exception message.
40 public function addHint($hint)
42 if (!$this->containsHints) {
43 $this->message .= "\nHint: ".$hint;
44 $this->containsHints = true;
46 $this->message .= ', '.$hint;