Chris@0: Chris@0: * Chris@0: * For the full copyright and license information, please view the LICENSE Chris@0: * file that was distributed with this source code. Chris@0: */ Chris@0: Chris@0: namespace Symfony\Component\Debug\Exception; Chris@0: Chris@0: /** Chris@0: * Error Exception with Variable Context. Chris@0: * Chris@0: * @author Christian Sciberras Chris@0: */ Chris@0: class ContextErrorException extends \ErrorException Chris@0: { Chris@0: private $context = array(); Chris@0: Chris@0: public function __construct($message, $code, $severity, $filename, $lineno, $context = array()) Chris@0: { Chris@0: parent::__construct($message, $code, $severity, $filename, $lineno); Chris@0: $this->context = $context; Chris@0: } Chris@0: Chris@0: /** Chris@0: * @return array Array of variables that existed when the exception occurred Chris@0: */ Chris@0: public function getContext() Chris@0: { Chris@0: return $this->context; Chris@0: } Chris@0: }