Skip to content

SmartyCompilerException

Smarty compiler exception class

Properties

source

The template source snippet relating to the error

public $source

desc

The raw text of the error message

public $desc

template

The resource identifier or template name

public $template

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

public __toString(): string

setLine

public setLine(int $line): mixed

Parameters:

Parameter Type Description
$line int

Inherited methods

__toString

public __toString(): string


Automatically generated on 2025-03-18