class SSTemplateParseException extends Exception (View source)

deprecated 5.4.0 Will be renamed to SilverStripe\TemplateEngine\Exception\SSTemplateParseException

This is the exception raised when failing to parse a template. Note that we don't currently do any static analysis, so we can't know if the template will run, just if it's malformed. It also won't catch mistakes that still look valid.

Methods

public
__construct(string $message, SSTemplateParser $parser)

SSTemplateParseException constructor.

Details

__construct(string $message, SSTemplateParser $parser)

SSTemplateParseException constructor.

Parameters

string $message
SSTemplateParser $parser