\Twig_Error_Syntax
Exception thrown when a syntax error occurs during lexing or parsing of a template.
- Author: Fabien Potencier <fabien@symfony.com>
Synopsis
class Twig_Error_Syntax
extends Twig_Error
{
- // Inherited members from Twig_Error
- protected $lineno;
- protected $filename;
- protected $rawMessage;
- protected $previous;
- // Inherited members from Exception
- protected $message;
- protected $code;
- protected $file;
- protected $line;
- // Inherited methods from Twig_Error
- public void __construct()
- public string getRawMessage()
- public string getTemplateFile()
- public void setTemplateFile()
- public integer getTemplateLine()
- public void setTemplateLine()
- public void guess()
- public Exception __call()
- protected void updateRepr()
- protected void guessTemplateInfo()
- // Inherited methods from Exception
- public void __construct()
- public final string getMessage()
- public final Exception getPrevious()
- public final mixed getCode()
- public final string getFile()
- public final int getLine()
- public final array getTrace()
- public final string getTraceAsString()
- public string __toString()
Hierarchy
Extends
Members
protected
- $code
—
int
The exception code - $file
—
string
The filename where the exception was created - $filename
- $line
—
int
The line where the exception was created - $lineno
- $message
—
string
The exception message - $previous
- $rawMessage
Methods
Inherited from Twig_Error
protected
public
- __call() — For PHP < 5.3.0, provides access to the getPrevious() method.
- getRawMessage() — Gets the raw message.
- getTemplateFile() — Gets the filename where the error occurred.
- getTemplateLine() — Gets the template line where the error occurred.
- guess()
- setTemplateFile() — Sets the filename where the error occurred.
- setTemplateLine() — Sets the template line where the error occurred.
Inherited from Exception
public
- __toString() — String representation of the exception
- getCode() — Gets the Exception code
- getFile() — Gets the file in which the exception occurred
- getLine() — Gets the line in which the exception occurred
- getMessage() — Gets the Exception message
- getPrevious() — Returns previous Exception
- getTrace() — Gets the stack trace
- getTraceAsString() — Gets the stack trace as a string