次の方法で共有


TemplateException class

診断を含む LG 例外。

Extends

Error

コンストラクター

TemplateException(string, Diagnostic[])

TemplateException クラスの新しいインスタンスを作成します。

プロパティ

Error

継承されたプロパティ

message
name
stack

メソッド

getDiagnostic()

診断。

コンストラクターの詳細

TemplateException(string, Diagnostic[])

TemplateException クラスの新しいインスタンスを作成します。

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

パラメーター

m

string

エラーメッセージ。

diagnostics

Diagnostic[]

スロー 診断 の一覧。

プロパティの詳細

Error

static Error: ErrorConstructor

プロパティ値

ErrorConstructor

継承されたプロパティの詳細

message

message: string

プロパティ値

string

Error.message から継承された

name

name: string

プロパティ値

string

Error.name から継承された

stack

stack?: string

プロパティ値

string

Error.stack から継承された

メソッドの詳細

getDiagnostic()

診断。

function getDiagnostic(): Diagnostic[]

戻り値

エラーまたは警告 (範囲、メッセージ、重大度、ソース、コード) の診断。