class Twig_Error_Loader in Translation template extractor 6.3
Same name and namespace in other branches
- 7.3 vendor/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
File
- vendor/
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 | 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 | ||
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 | ||
Twig_Error:: |
public | function | For PHP < 5.3.0, provides access to the getPrevious() method. | |
Twig_Error_Loader:: |
public | function |
Constructor. Overrides Twig_Error:: |