public function Twig_Error::__call

For PHP < 5.3.0, provides access to the getPrevious() method.

Parameters

string $method The method name:

array $arguments The parameters to be passed to the method:

Return value

Exception The previous exception or null

File

drupal/core/vendor/twig/twig/lib/Twig/Error.php, line 116

Class

Twig_Error
Twig base exception.

Code

public function __call($method, $arguments) {
  if ('getprevious' == strtolower($method)) {
    return $this->previous;
  }
  throw new BadMethodCallException(sprintf('Method "Twig_Error::%s()" does not exist.', $method));
}