class Twig_Error_Loader in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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
- class \Twig_Error extends \Exception
- class \Twig_Error_Loader
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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Twig_Error:: |
protected | property | ||
Twig_Error:: |
protected | property | ||
Twig_Error:: |
protected | property | ||
Twig_Error:: |
protected | property | ||
Twig_Error:: |
public | function | ||
Twig_Error:: |
public | function | Gets the raw message. | |
Twig_Error:: |
public | function | Gets the filename where the error occurred. | |
Twig_Error:: |
public | function | Gets the template line where the error occurred. | |
Twig_Error:: |
public | function | ||
Twig_Error:: |
protected | function | @internal | |
Twig_Error:: |
public | function | Sets the filename where the error occurred. | |
Twig_Error:: |
public | function | Sets the template line where the error occurred. | |
Twig_Error:: |
protected | function | @internal | |
Twig_Error:: |
public | function | For PHP < 5.3.0, provides access to the getPrevious() method. | |
Twig_Error_Loader:: |
public | function |
Constructor. Overrides Twig_Error:: |