SmartyCompilerException
Smarty compiler exception class
- Full name:
\SmartyCompilerException
- Parent class:
\SmartyException
Properties
source
The template source snippet relating to the error
desc
The raw text of the error message
template
The resource identifier or template name
Methods
__construct
The constructor of the exception
public __construct(string $message = "", int $code, string|null $filename = null, int|null $line = null, \Throwable|null $previous = null): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$message |
string | The Exception message to throw. |
$code |
int | The Exception code. |
$filename |
string|null | The filename where the exception is thrown. |
$line |
int|null | The line number where the exception is thrown. |
$previous |
\Throwable|null | The previous exception used for the exception chaining. |
__toString
setLine
Parameters:
Parameter | Type | Description |
---|---|---|
$line |
int |
Inherited methods
__toString
Automatically generated on 2025-03-18