Class: TemplateValidationError

TemplateValidationError(code, …args)

Specialized error class for template syntax, parsing, and static validation warnings or errors.

Constructor

new TemplateValidationError(code, …args)

Creates an instance of TemplateValidationError.

Parameters:
Name Type Attributes Description
code string

The template error or warning code.

args any <repeatable>

Arguments to format within the template message.

Source:

Extends

Classes

TemplateValidationError

Members

code :string

The unique framework error code.

Type:
  • string
Overrides:
Source:

name :string

Custom name identifier for template validation errors.

Type:
  • string
Overrides:
Source:

Methods

setLocation(loc) → {CompilerError}

Attaches source location information and generates a code frame with carets (^).

Parameters:
Name Type Description
loc object

Location options object containing { line, column, source, filename, index, length }.

Overrides:
Source:
Returns:

Returns this error instance for chaining.

Type
CompilerError