Twig_Error::__construct
Constructor.
Set both the line number and the filename to false to disable automatic guessing of the original template name and line number. Set the line number to -1 to enable its automatic guessing. Set the filename to null to enable its automatic guessing. By default, automatic guessing is enabled.
Signature
public function __construct(string
$message,
[Exception
$lineno = 1,
[Exception
$filename = null,
[Exception
$previous = null]]] )
Parameters
$message
— string- The error message
$lineno
— integer- The template line where the error occurred
$filename
— string- The template file name where the error occurred
$previous
— Exception- The previous exception