Craft 3 Class Reference

Class craft\web\twig\TemplateLoaderException

Inheritance
craft\web\twig\TemplateLoaderException » Twig_Error_Loader » Twig_Error » Exception
Available since version
3.0
Source Code
https://github.com/craftcms/cms/blob/master/src/web/twig/TemplateLoaderException.php

Class TemplateLoaderException

Public Properties
Property Type Description Defined By
$template string, null craft\web\twig\TemplateLoaderException
Public Methods
Method Description Defined By
__construct() craft\web\twig\TemplateLoaderException
appendMessage() Twig_Error
getRawMessage() Gets the raw message. Twig_Error
getSourceContext() Gets the source context of the Twig template where the error occurred. Twig_Error
getTemplateLine() Gets the template line where the error occurred. Twig_Error
guess() Twig_Error
setSourceContext() Sets the source context of the Twig template where the error occurred. Twig_Error
setTemplateLine() Sets the template line where the error occurred. Twig_Error

Property Details

$template public property #

public string, null $template null

Method Details

__construct() public method #

public void __construct ( \craft\web\twig\string $template, \craft\web\twig\string $message )
$template string The requested template
$message string The exception message