You are here

class Twig_Error_Loader in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/twig/twig/lib/Twig/Error/Loader.php \Twig_Error_Loader

Exception thrown when an error occurs during template loading.

Automatic template information guessing is always turned off as if a template cannot be loaded, there is nothing to guess. However, when a template is loaded from another one, then, we need to find the current context and this is automatically done by Twig_Template::displayWithErrorHandling().

This strategy makes Twig_Environment::resolveTemplate() much faster.

@author Fabien Potencier <fabien@symfony.com>

Hierarchy

Expanded class hierarchy of Twig_Error_Loader

1 string reference to 'Twig_Error_Loader'
Twig_Tests_Loader_FilesystemTest::testFindTemplateExceptionNamespace in vendor/twig/twig/test/Twig/Tests/Loader/FilesystemTest.php

File

vendor/twig/twig/lib/Twig/Error/Loader.php, line 25

View source
class Twig_Error_Loader extends Twig_Error {
  public function __construct($message, $lineno = -1, $filename = null, Exception $previous = null) {
    parent::__construct($message, false, false, $previous);
  }

}

Members

Namesort descending Modifiers Type Description Overrides
Twig_Error::$filename protected property
Twig_Error::$lineno protected property
Twig_Error::$previous protected property
Twig_Error::$rawMessage protected property
Twig_Error::appendMessage public function
Twig_Error::getRawMessage public function Gets the raw message.
Twig_Error::getTemplateFile public function Gets the filename where the error occurred.
Twig_Error::getTemplateLine public function Gets the template line where the error occurred.
Twig_Error::guess public function
Twig_Error::guessTemplateInfo protected function @internal
Twig_Error::setTemplateFile public function Sets the filename where the error occurred.
Twig_Error::setTemplateLine public function Sets the template line where the error occurred.
Twig_Error::updateRepr protected function @internal
Twig_Error::__call public function For PHP < 5.3.0, provides access to the getPrevious() method.
Twig_Error_Loader::__construct public function Constructor. Overrides Twig_Error::__construct