TemplateException class

LG Exception that contains diagnostics.

Extends

Error

Constructors

TemplateException(string, Diagnostic[])

Creates a new instance of the TemplateException class.

Properties

Error

Inherited Properties

message
name
stack

Methods

getDiagnostic()

Diagnostics.

Constructor Details

TemplateException(string, Diagnostic[])

Creates a new instance of the TemplateException class.

new TemplateException(m: string, diagnostics: Diagnostic[])

Parameters

m

string

Error message.

diagnostics

Diagnostic[]

List of Diagnostic to throw.

Property Details

Error

static Error: ErrorConstructor

Property Value

ErrorConstructor

Inherited Property Details

message

message: string

Property Value

string

Inherited From Error.message

name

name: string

Property Value

string

Inherited From Error.name

stack

stack?: string

Property Value

string

Inherited From Error.stack

Method Details

getDiagnostic()

Diagnostics.

function getDiagnostic(): Diagnostic[]

Returns

A diagnostic of the error or warning (range, message, severity, source, code).