class ContextErrorException

Error Exception with Variable Context.

@author Christian Sciberras <uuf6429@gmail.com>

Hierarchy

  • class \Symfony\Component\Debug\Exception\ContextErrorException extends \Symfony\Component\Debug\Exception\ErrorException

Expanded class hierarchy of ContextErrorException

1 file declares its use of ContextErrorException
ErrorHandler.php in drupal/core/vendor/symfony/debug/Symfony/Component/Debug/ErrorHandler.php

File

drupal/core/vendor/symfony/debug/Symfony/Component/Debug/Exception/ContextErrorException.php, line 19

Namespace

Symfony\Component\Debug\Exception
View source
class ContextErrorException extends \ErrorException {
  private $context = array();
  public function __construct($message, $code, $severity, $filename, $lineno, $context = array()) {
    parent::__construct($message, $code, $severity, $filename, $lineno);
    $this->context = $context;
  }

  /**
   * @return array Array of variables that existed when the exception occured
   */
  public function getContext() {
    return $this->context;
  }

}

Members