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\Debug\Exception;
15 * Error Exception with Variable Context.
17 * @author Christian Sciberras <uuf6429@gmail.com>
19 class ContextErrorException extends \ErrorException
21 private $context = array();
23 public function __construct($message, $code, $severity, $filename, $lineno, $context = array())
25 parent::__construct($message, $code, $severity, $filename, $lineno);
26 $this->context = $context;
30 * @return array Array of variables that existed when the exception occurred
32 public function getContext()
34 return $this->context;