You are here

class FlattenException in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/debug/Exception/FlattenException.php \Symfony\Component\HttpKernel\Exception\FlattenException

FlattenException wraps a PHP Exception to be able to serialize it.

Basically, this class removes all objects from the trace.

@author Fabien Potencier <fabien@symfony.com>

Hierarchy

Expanded class hierarchy of FlattenException

Deprecated

Deprecated in 2.3, to be removed in 3.0. Use the same class from the Debug component instead.

1 file declares its use of FlattenException
FlattenException.php in vendor/symfony/debug/Exception/FlattenException.php

File

vendor/symfony/debug/Exception/FlattenException.php, line 25

Namespace

Symfony\Component\HttpKernel\Exception
View source
class FlattenException {
  private $handler;
  public static function __callStatic($method, $args) {
    if (!method_exists('Symfony\\Component\\Debug\\Exception\\FlattenException', $method)) {
      throw new \BadMethodCallException(sprintf('Call to undefined method %s::%s()', get_called_class(), $method));
    }
    return call_user_func_array(array(
      'Symfony\\Component\\Debug\\Exception\\FlattenException',
      $method,
    ), $args);
  }
  public function __call($method, $args) {
    if (!isset($this->handler)) {
      $this->handler = new DebugFlattenException();
    }
    if (!method_exists($this->handler, $method)) {
      throw new \BadMethodCallException(sprintf('Call to undefined method %s::%s()', get_class($this), $method));
    }
    return call_user_func_array(array(
      $this->handler,
      $method,
    ), $args);
  }

}

Members

Namesort descending Modifiers Type Description Overrides
FlattenException::$class private property
FlattenException::$code private property
FlattenException::$file private property
FlattenException::$handler private property
FlattenException::$headers private property
FlattenException::$line private property
FlattenException::$message private property
FlattenException::$previous private property
FlattenException::$statusCode private property
FlattenException::$trace private property
FlattenException::create public static function
FlattenException::flattenArgs private function
FlattenException::getAllPrevious public function
FlattenException::getClass public function
FlattenException::getClassNameFromIncomplete private function
FlattenException::getCode public function
FlattenException::getFile public function
FlattenException::getHeaders public function
FlattenException::getLine public function
FlattenException::getMessage public function
FlattenException::getPrevious public function
FlattenException::getStatusCode public function
FlattenException::getTrace public function
FlattenException::setClass public function
FlattenException::setCode public function
FlattenException::setFile public function
FlattenException::setHeaders public function
FlattenException::setLine public function
FlattenException::setMessage public function
FlattenException::setPrevious public function
FlattenException::setStatusCode public function
FlattenException::setTrace public function
FlattenException::setTraceFromException public function
FlattenException::toArray public function
FlattenException::__call public function
FlattenException::__callStatic public static function