SyntaxError

SyntaxError

Syntax error raised during template scanning or parsing.

Constructor

new SyntaxError(filename:, row:, col:, message:)

Create a syntax error.
Source:
Parameters:
Name Type Description
filename: string template filename
row: number | string source row number
col: number | string source column number
message: string syntax error details

Methods

toString() → {string}

Format this syntax error into a readable location-prefixed string.
Source:
Returns:
Type:
string
formatted error string