1<?php
2
3/*
4 * This file is part of Twig.
5 *
6 * (c) Fabien Potencier
7 *
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
10 */
11
12namespace Twig\Error;
13
14/**
15 * Exception thrown when an error occurs during template loading.
16 *
17 * Automatic template information guessing is always turned off as
18 * if a template cannot be loaded, there is nothing to guess.
19 * However, when a template is loaded from another one, then, we need
20 * to find the current context and this is automatically done by
21 * Twig\Template::displayWithErrorHandling().
22 *
23 * This strategy makes Twig\Environment::resolveTemplate() much faster.
24 *
25 * @author Fabien Potencier <fabien@symfony.com>
26 */
27class LoaderError extends Error
28{
29    public function __construct($message, $lineno = -1, $source = null, \Exception $previous = null)
30    {
31        parent::__construct($message, $lineno, $source, $previous, false);
32    }
33}
34
35class_alias('Twig\Error\LoaderError', 'Twig_Error_Loader');
36