class Twig_Error_Runtime extends Twig_Error
Exception thrown when an error occurs at runtime.
Methods
|
__construct(string $message, integer $lineno = -1, string $filename = null, Exception $previous = null)
Constructor. |
from Twig_Error | |
| string |
getRawMessage()
Gets the raw message. |
from Twig_Error |
| string |
getTemplateFile()
Gets the filename where the error occurred. |
from Twig_Error |
|
setTemplateFile(string $filename)
Sets the filename where the error occurred. |
from Twig_Error | |
| integer |
getTemplateLine()
Gets the template line where the error occurred. |
from Twig_Error |
|
setTemplateLine(integer $lineno)
Sets the template line where the error occurred. |
from Twig_Error | |
| guess() | from Twig_Error | |
| Exception |
__call(string $method, array $arguments)
For PHP < 5.3.0, provides access to the getPrevious() method. |
from Twig_Error |
Details
in Twig_Error at line 58
public
__construct(string $message, integer $lineno = -1, string $filename = null, Exception $previous = null)
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.
in Twig_Error at line 84
public string
getRawMessage()
Gets the raw message.
in Twig_Error at line 94
public string
getTemplateFile()
Gets the filename where the error occurred.
in Twig_Error at line 104
public
setTemplateFile(string $filename)
Sets the filename where the error occurred.
in Twig_Error at line 116
public integer
getTemplateLine()
Gets the template line where the error occurred.
in Twig_Error at line 126
public
setTemplateLine(integer $lineno)
Sets the template line where the error occurred.
in Twig_Error at line 133
public
guess()
in Twig_Error at line 149
public Exception
__call(string $method, array $arguments)
For PHP < 5.3.0, provides access to the getPrevious() method.