TemplateLoaderException

Type
Class
Namespace
craft\web\twig
Inherits
craft\web\twig\TemplateLoaderException » Twig_Error_Loader » Twig_Error » Exception
Since
3.0

Class TemplateLoaderException

View source

Public Properties

PropertyDescription
$templatestring, null

$template

Signature

public string, null $template = null

Public Methods

MethodDescription
__construct()
appendMessage()
getRawMessage()Gets the raw message.
getSourceContext()Gets the source context of the Twig template where the error occurred.
getTemplateLine()Gets the template line where the error occurred.
guess()
setSourceContext()Sets the source context of the Twig template where the error occurred.
setTemplateLine()Sets the template line where the error occurred.

__construct()

View source

Arguments

  • $template (string) – The requested template
  • $message (string) – The exception message

Signature

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